Skip Navigation

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.

This topic contains 5 replies, has 2 voices.

Last updated by Andreas W. 1 year, 3 months ago.

Assisted by: Andreas W..

Author Posts
September 28, 2023 at 10:19 am #14480403

davidS-113

Hi,

the following issue happens every time:

I create a new page with a title "Test Page", which is not published yet. I insert an image into that page with a file name "test-page". When I publish the page, it is always beeing redirected from example.com/test-page/ to example.com/test-page/test-page/.

In the developer console I can see "x-redirect-by: WPML".

I have also installed Yoast SEO (and WPML SEO), which redirects the attachment URL to the media itself, when uploading a new image.

Please help!

October 1, 2023 at 1:15 am #14492277

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Please try to recreate this issue on the following test site and let me know the results:

One-Click-Login:
hidden link

Best regards
Andreas

October 2, 2023 at 12:13 pm #14497825

davidS-113

Hi,

I couldn't recreate my problem. The problem with the duplicate URL part seems to occur the other way around here. While creating a page with a title "New Test" I upload an image with a filename "new-test.jpg". When I click on that image in the media library and click on "View attachment page", the url looks like that:

hidden link

Is this the way it's supposed to work?

Thank you very much for your help!

October 3, 2023 at 4:27 pm #14507345

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Yes, I do actually see the same behavior on the test site when disabling WPML.

Best regards
Andreas

October 5, 2023 at 7:33 am #14517651

davidS-113

Hi Andreas,

I did a few more tests and was able to recreate the problem after all:

hidden link

1. create a new page
2. enter a title (e.g. "Service")
3. insert an image with the file name "service"
4. publish the page via the "Visibility" setting to "private" and click on "view page"

October 5, 2023 at 5:35 pm #14522569

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Yes, I do see the same behavior once WPML is disabled.

This seems to be expected or a WordPress issue, but not related to WPML.

Best regards
Andreas

October 6, 2023 at 9:28 am #14525903

davidS-113

Ok, I understand. Thank you very much for your help!