-
Notifications
You must be signed in to change notification settings - Fork 106
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
Built-in sitemap not working when using almost pretty permalinks #1107
Comments
Yes, Polylang supports buil-in WP sitemap. When you look at the content
Sor for example, you have one link for posts in English, one link for posts in French. |
Thanks for the url of you site. This allowed me to understand the source of the bug and to reproduce it. It's due to the presence of It works for me without |
Investigating this issue, I noticed that WordPress sitemaps don't follow the correct url pattern when adding I opened a new ticket for this bug: https://core.trac.wordpress.org/ticket/56671. This needs to be checked after WordPress has solved this issue, but it's perfectly possible that this would solve the issue on our side at the same time as, when using almost pretty permalinks, Polylang expects that all urls include |
Thank you for your feedback and investigation! :) Ok, to make a long story short: I removed the 'index.php' as the prefix from the permalink settings and now it works. (Unfortunately I had to remove the 'index.php' from all manual placed internal links on the page. The links still work, but its cleaner to not have that 'index.php' anywhere. But this is not an issue of Polylang at all.) So, for me the problem is solved by changing the permalink settings. Thank you again! |
Prerequisites
master
branch of Polylang and the latest WordPress version.Steps to reproduce the issue
Expected behavior and actual behavior
When I follow those steps, I see a list with sublinks to only the primary / default language. But each link is present 2 times.
I was expecting to see each sublink for the first and the second language.
Is there support for the built-in sitemap in Wordpress?
The text was updated successfully, but these errors were encountered: