This thread is resolved. Here is a description of the problem and solution.
Problem:
i noticed a possible bug in WPML, using custom ajax queries. So basically if you go on this page: https://nextcloud.com/fr/?page_id=202641&preview=true&_ppp=f4e03f21cd you see that the language is french and listing the latest blog posts (french when translation is available, if not default english
Solution:
Actually, no need for the access, Sorry for the noise.
I just noticed it was a problem on my server and not in the code. I had the "Referrer policy" set on "no-referrer" and, weirdly enough, that was the issue. After changing it to "same-origin" it all worked well.
Not sure if this is something for you to mention in your documentation.
Thanks a lot!
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
i noticed a possible bug in WPML, using custom ajax queries. So basically if you go on this page: hidden link you see that the language is french and listing the latest blog posts (french when translation is available, if not default english
Thanks for your patience while I continued troubleshooting. I used a plugin from the repository to display the Load More button and as you can see on the test site, it loads more posts in Spanish even if the posts have not been translated. There are two Spanish blog posts, Blog post 1 and Blog Post 10, that have been translated. As you use the load more button in the Spanish blog page, you will see when you get to those posts, you see the "ES" in the blog post title for the ones that have been translated. All the rest are showing the English title without the "ES" because they are falling back to default.
English blog page: hidden link
Spanish blog page: hidden link
So I don't think the issue is a general bug with WPML, otherwise it would not load Engish (default) posts for the Spanish blog page.
Actually, no need for the access, Sorry for the noise.
I just noticed it was a problem on my server and not in the code. I had the "Referrer policy" set on "no-referrer" and, weirdly enough, that was the issue. After changing it to "same-origin" it all worked well.
Not sure if this is something for you to mention in your documentation.
Thanks a lot!
Thanks for letting me know how you got it resolved, and glad it is working as expected now. Don't hesitate to open up a new chat if you come across any issues with WPML, we will be happy to help.