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

Last updated by Yvette 1 year, 3 months ago.

Assigned support staff: Yvette.

Author Posts
March 6, 2019 at 11:49 am #3278623

julianZ-4

I am trying to: Create a new post

Link to a page where the issue can be seen: admincp only

I expected to see: new post url, no redirects

Instead, I got: a new redirect from my url preispirat.ch/fr/ to the post I just created

Same problem on my other domain, blackfridaydeals.ch

This happens only if I create a new post in the not-original language. yoastseo premium auto redirect.

March 7, 2019 at 7:50 pm #3286702

Yvette
Supporter

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

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

Hello

Please check the redirects that are automatically generated by YoastSEO. The premium feature is creating new redirects that can be causing this behaviour.

More here:
hidden link

See section : "Redirect Added In SEO Settings (Premium Version Only)"

If this does not resolve your issue, please write back with system access details and steps to replicate your issue. I am opening the private area for this.
Thanks

March 8, 2019 at 12:56 pm #3292294

julianZ-4

I'm not sure what you're suggesting?

I want to have the automatic redirects, but it is not working.

Here is an example of a new page on my site "test". After changing the slug/url to test (instead of what was before) the system creates a redirect from the homepage to the new URL.

I've deactivated it again but it was like this:
german version as normal
blackfridaydeals.ch/fr -> redirect to the page I changed the slug
blackfridaydeals.ch/fr/ -> french homepage

should be blackfridaydeals.ch/fr/ and blackfridaydeals.ch/fr -> french homepage

I can not give you access to test something on my live system. Someone from your team already broke it once. If you want, I can make you a duplicator copy so you can test.

Screenshot_1.png
March 8, 2019 at 3:01 pm #3293434

Yvette
Supporter

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

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

Ok. Let´s hold off on the Duplciator package until we can confirm this is indeed a WPML issue and that I can restate your problem correctly.

First let me clarify the scenario with you:

1. You wrote: "..the system creates a redirect from the homepage to the new URL..."
What do you mean by "the system"?
WPML has redirect "rewrtite rules" located in .htaccess but there are no URLs that are stored in any table per say.

I can see the message at the top of the screen which is notifying you that YOAST SEO has created a redirect from
blackfridaydeals.ch/ -> blackfridaydeals.ch/fr/test/

This is done independently from WPML. This is done by Yoast with no influence from WPML. e.g. this is Yoast logic.

2. Scenario
Please read my understanding and correct any place where I am wrong in your next reply.

With the following page slug established by you manually:
blackfridaydeals.ch/fr/test/
And Yoast auto0matically creating this redirection (as per system message):
blackfridaydeals.ch/ -> blackfridaydeals.ch/fr/test/

You are expecting the following:
blackfridaydeals.ch/fr -> french homepage
blackfridaydeals.ch/fr/ -> french homepage

However, you are getting this instead:
blackfridaydeals.ch/fr -> blackfridaydeals.ch/fr/test/
blackfridaydeals.ch/fr/ -> french homepage

The "problem" is that theis automatic redirection :
blackfridaydeals.ch/fr -> blackfridaydeals.ch/fr/test/

is being created even when the *only* automatic redirection expected was this:
blackfridaydeals.ch/ -> blackfridaydeals.ch/fr/test/

You suspect that WPML is causing Yoast to create the 2nd redirection in the FR language (secondary language) when the expectation is that an automatic redirection in one language should be indepenent from the primary language.

Is this correct?
Please use my same format to correct any areas where I am describing the situation incorrectly.

THanks for your collaboration

March 8, 2019 at 3:34 pm #3293806

julianZ-4

Hello

Not exactly. It's like this:

2. Scenario
Please read my understanding and correct any place where I am wrong in your next reply.

With the following page slug established by you manually:
blackfridaydeals.ch/fr/test/
And Yoast auto0matically creating this redirection (as per system message):
blackfridaydeals.ch/ -> blackfridaydeals.ch/fr/test/

You are expecting the following:
blackfridaydeals.ch/fr -> french homepage
blackfridaydeals.ch/fr/ -> french homepage

However, you are getting this instead:
blackfridaydeals.ch/fr -> blackfridaydeals.ch/fr/test/
blackfridaydeals.ch/fr/ -> french homepage

The "problem" is that theis automatic redirection :
blackfridaydeals.ch/fr -> blackfridaydeals.ch/fr/test/

is being created even when the *only* automatic redirection expected was this:
blackfridaydeals.ch/ -> blackfridaydeals.ch/fr/test/
wrong. the expected redirection would be: If I change the URL of blackfridaydeals.ch/fr/test to blackfridaydeals.ch/fr/test-2/ the redirection is from blackfridaydeals.ch/fr/test to blackfridaydeals.ch/fr/test-2/

Instead I get: blackfridaydeals.ch/fr -> blackfridaydeals.ch/fr/test-2/

(blackfridaydeals.ch/fr/ still goes to the correct URL)

You suspect that WPML is causing Yoast to create the 2nd redirection in the FR language (secondary language) when the expectation is that an automatic redirection in one language should be indepenent from the primary language.

-----

the rest is correct

Scenario 1: correct. its a redirection by yoast SEO premium plugin. But I read on your website that these two are compatible p.e. here: https://wpml.org/documentation/plugins-compatibility/using-wordpress-seo-with-wpml/#translate-sitemaps

March 8, 2019 at 4:41 pm #3294306

Yvette
Supporter

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

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

Hello

I´ve done some internal research and found a number of tickets that were opened in the past associated with this behaviour/feature from YOAST.

It was fixed, but it is also completely possible that the bug has recurred with the latest updates or that your particular use case was not tested.

Please do the following:
1. Log into this sandbox site which has been preloaded with WPML plugins
hidden link
The site is good for 7 days.

2. Upload your SEO Premium plugin
3. Configure/create a sample case that illustrates the problem we have been discussing.

4. Confirm that the issue occurs here and write back.

Once I confirm this, I can then send this directly to the compatibility team who can address the issue directly.

Thanks for your collaboration

March 8, 2019 at 4:51 pm #3294406

julianZ-4

Yes, the error is persistent.

hidden link
hidden link

You can just create a new page and then change the permalink.

March 11, 2019 at 5:23 am #3307789

Yvette
Supporter

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

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

Hello

I followed your instructions but I first removed the old/defunct permalinks that were entered in the SEO Yoast table (just to make the example more clear).

I created the page called "WPML" in Spanish. I then changed the permalink to be "WPML-2"

The following URL behaved as expected:
hidden link (no redirection)

This redirection remains even though I had deleted it from the SEO table:
hidden link -> hidden link

It is not clear where this redirection is stored. But I am still not sure how this is a WPML issue. If the redirection is persisting, this not within the scope of functionality of WPML. I will raise the issue with our compatibility team, but the logic seems to be squarely in the YOAST SEO code. I think you will get a faster resolution if you raise the issue with YOAST support.

I wait for your thoughts on this.

March 11, 2019 at 9:38 am #3309205

julianZ-4

I think yoast seo will only tell me that it's WPMLs fault because on default wordpress, the redirects work as expected.

Please raise this bug to your compatibility team / developers. I'm sure that this is a big problem for many site owners using wpml...

March 11, 2019 at 3:39 pm #3314489

Yvette
Supporter

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

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

Alright - this is now transferred to our compatibiltiy team.
This is an informational post, no need to respond. If/when I receive news from them, I will update this same ticket.

March 12, 2019 at 10:01 am #3320519

julianZ-4

What do you mean by "if" and how long will it take? I have other tickets which are open for more than 4.5 months..

March 13, 2019 at 7:49 pm #3337961

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi.

I'm writing to you here to let you know that Yvette is on vacation this week. I can see that she has escalated this issue to our compatibility team. Please expect an answer from Yvette next week.

Thank you for your patience.
Itamar.

March 20, 2019 at 2:24 am #3384541

Yvette
Supporter

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

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

Hello

Our compatibility team is working on this now. They will let us know if this is considered a compatibility issue or not.

March 28, 2019 at 4:16 pm #3483675

julianZ-4

Hello Yvette

Do you have any update on this?

March 28, 2019 at 5:51 pm #3484613

Yvette
Supporter

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

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

Thank you for writing. I´ll check right now.