Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 -
- 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 -

Supporter timezone: Asia/Kathmandu (GMT+05:45)

Tagged: 

This topic contains 1 replies, has 0 voices.

Last updated by Shekhar Bhandari 5 months ago.

Assisted by: Shekhar Bhandari.

Author Posts
December 3, 2025 at 8:28 am #17629569

itA-15

Want to know how hreflang="x-default" url getting generated
English url: hidden link
Spanish url: hidden link

in the spanish url page source english and x-default url showing without end slash

December 4, 2025 at 4:33 am #17632560

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Our compatibility team checked the issue and mentioned that problem is not exclusive to WPML but rather to the plugin itself, accepting both URLs (with and without a trailing slash ) regardless of the WP default permalink settings.

They suggested the following workaround:

Open the ...\wp-content\plugins\custom-permalinks\includes\class-custom-permalinks-frontend.php file.

Look for line 185.

Replace:

return $permalink;

With

return trailingslashit( $permalink );

Let me know if this helps.

Thanks

The topic ‘[Closed] spanish url page source english and x-default url showing wrongly (showing without end slash)’ is closed to new replies.