-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URL switch problem in a store with a redirection that exists in another store #39470
Comments
Hi @Yoann-D. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hello @Yoann-D, Thanks for the report and collaboration! We request you to please elaborate more on the below steps (If possible share screencast to demonstrate):
Thanks |
Hello @engcom-Hotel , This redirection for Website A On my Website B I don't want a redirect, so the url must be "/blog" I switch to the DE for example via the store switcher www.storeb.com/de/blog |
Hey @Yoann-D, Thanks for the reply! But its unclear to perform the below step, please elaborate more on this or share a screencast for reference:
Thanks |
Hey @engcom-Hotel On other Websites, there is no redirection, we must access www.websiteB.fr/fr/blog |
Thanks @Yoann-D for the information! We are trying to reproduce the issue. We will get back to you soon. Thanks |
Hello @Yoann-D, Thanks for the report and collaboration! We are able to reproduce the issue in the latest development branch i.e. 2.4-develop. Hence confirming the issue for further processing. Thanks |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-13530 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Hotel. Thank you for verifying the issue. |
Preconditions and environment
Steps to reproduce
Expected result
The Rewrite url created for another website A must not have any link with Website B
Actual result
For code in file : vendor/magento/module-url-rewrite/Model/StoreSwitcher/RewriteUrl.php ligne 80
Currently my store IDs on my website B are 7 and 25.
The code returns me a redirect to website A
So we have $existingRewrite is yes and $currentRewrite is false . So we are sent back to the BaseUrl
The problem in the $existing write variable, we will not filter with the $oldStoreId
To correct this I added the $oldStoreId in the filter
Additional information
This my fix
switcher.zip
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: