Custom permalink interfering with canonical url
-
Hello,
I am using wpglobus and I set permalinks to use a custom permalink structure (if I understand correctly, this is required):
/%year%/%monthnum%/%day%/%postname%However, when my page’s canonical url is generated (https://developer.wordpress.org/reference/functions/wp_get_canonical_url/), it is generated incorrectly.
For example, for some paginated page two, the url is:
http://www.example.com/?page=2But the canonical url generated is:
http://www.example.com/2This is fixed if I change the permalink structure to something predefined (eg:”plain”), but then the internationalized urls don’t work (eg: http://www.example.com/ru returns a 404).
Any suggestions for how to fix this?
Thank you
The topic ‘Custom permalink interfering with canonical url’ is closed to new replies.