Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page Links To no longer working - seems compatibility issue with WPML #146

Open
IlseO76 opened this issue Jun 23, 2021 · 2 comments
Open

Comments

@IlseO76
Copy link

IlseO76 commented Jun 23, 2021

Hi Mark,

Somehow 'Page Links To' has stopped working on one of my sites for links to external pages, while it still works when I link a page to an internal page. It seems to be a conflict with WPML.

See https://www.moralmarkets.org/blog/page/2/?et_blog. The link from the post "Green Swans..." to an internal page still works, while the link from the post "Karl Marx..." to an external post no longer works - clicking on the post takes you to the WP dashboard (if you are logged in) or to the login page (if you are not yet logged in).

The reason why I think it is a compatibility issue with WPML: if you go to the network tab in the browser inspector', and look at the 'response headers' for the 301 item, you see "x-redirect-by WPML". It say the same in case of an internal link added with Page Links to, but apparently WPML is able to handle those internal links.

Any suggestions on what to try and do to fix this?

@IlseO76
Copy link
Author

IlseO76 commented Jun 23, 2021

Thanks by the way for making this plugin available. I've been using it for years with great satisfaction, would be a real bummer if I cannot get it to work again.

@IlseO76
Copy link
Author

IlseO76 commented Jun 28, 2021

Found a work-around in this post: https://wpml.org/forums/topic/strange-redirections-occuring-as-soon-as-wmpl-is-enabled/, namely:

Go to wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-query-parser.php, line no.280 and comment out following line:

1 | list( $q, $redir_pid ) = $this->maybe_adjust_name_var( $q );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant