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 3 replies, has 2 voices.

Last updated by Dražen Duvnjak 3 months, 4 weeks ago.

Assisted by: Dražen Duvnjak.

Author Posts
July 22, 2024 at 3:20 pm #15987688

Jim Servaas

Background of the issue:
I have a multi domain setup and I am trying to ensure that media URLs are correctly formatted. I am following the documentation at https://wpml.org/documentation/getting-started-guide/media-translation/?utm_source=plugin&utm_medium=gui&utm_campaign=wpmlcore.

Symptoms:
The media output URL is incorrect, showing a double site domain: hidden link instead of hidden link.

Questions:
How can I fix the media URL to remove the double site domain?

July 23, 2024 at 6:37 am #15990503

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for contacting us.

I suspect this could be caused by some custom code or redirect rule.

1) Can you please check if the issue happens when only WPML plugins activated, all other plugins disabled?

2) Please change your theme to the WP default theme and check if the issue happens.

Please make a backup before proceeding.

Let us know how it goes.

Regards,
Drazen

July 27, 2024 at 2:26 pm #16010874

Jim Servaas

When I work with the subdirectories /en/ /de/ there is no issue.

July 29, 2024 at 5:56 am #16013634

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks.

Can you please also check my suggestions from the last reply and let me know how it goes?

Thanks,
Drazen

July 31, 2024 at 1:57 pm #16025703

Jim Servaas

did not fixed it, but added a custom filter function.