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.

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Shekhar Bhandari 1 year, 10 months ago.

Assisted by: Shekhar Bhandari.

Author Posts
June 28, 2023 at 5:07 am

timoM-10

Redirect to URL without trailing slash

June 28, 2023 at 5:59 am
June 28, 2023 at 6:35 am #13906951

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

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

Hello there,

I have asked our 2nd tier to check the issue forward, but to check this issue forward, we will need a copy of your site, being so, can you provide me your site backup? You can send your backup using some file-sharing platforms.

I have enabled the private reply for you.

Thanks

June 28, 2023 at 7:48 am
June 28, 2023 at 9:28 am #13908573

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

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

Hello there,

Our 2nd tier checked the problem and suggested the following workarround:

Go to \wp-content\plugins\sitepress-multilingual-cms\classes\canonicals\class-wpml-canonicals-hooks.php
Change from:

public function maybe_fix_nginx_redirection_callback( $redirect ) {
	$home_url = trailingslashit( get_home_url() );

To

public function maybe_fix_nginx_redirection_callback( $redirect ) {
	$home_url =  get_home_url() ;

Let me know if this helps.

Thanks

June 28, 2023 at 1:38 pm #13910513

timoM-10

this solved my issue. Thanks a lot for this quick support. One more question: Do I have to change this with the next release or will you do anything so that it will work in future without changing your vendor code?

June 29, 2023 at 4:28 am #13914639

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

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

Hello there,

Thank you for confirming.

Yes, the issue is now escalated to our developers and the fix will be included in our upcoming releases.

Thanks