-
Notifications
You must be signed in to change notification settings - Fork 9.4k
More than one redirect with trailing slash in secure non-www url #26177
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
Comments
Hi @monotheist. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @monotheist do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Check if this helps: #25603 |
@Zyles Thank you. I see solution but I am finding it hard to understand. Could you please help me by pointing exact changes that are required to be done? Much appreciated. |
@Zyles Thank you. I am still finding it hard. I believe there are 3 files. Below are the files with fixes. Can you please confirm? https://raw.githubusercontent.com/magento/magento2/fa468e7298b42c0a233bbcb7db932f8a8ccbb32f/app/code/Magento/UrlRewrite/Controller/Router.php |
You need to do the rollback in the first link and then apply the changes in the pull request. You can skip the test files in test directories. Add lines with + and remove - |
@Zyles is it not possible to just replace my current file with below file? |
Could work. Just make a backup of the original file. |
@Zyles Thank you so much. Essentially I just need to focus on one file which is Router.php in both the links. |
@Zyles I tried replacing Router.php file from both the links. Cleared cache and restarted php-fpm. My issue still exists. |
What is your category suffix setting? And "Auto-redirect to Base URL"? Is the redirect 302 or 301? I was unaware that the default nginx conf worked with SSL at all, since it is not even configured to. I suggest installing a fresh 2.3.3 installation and trying to reproduce it. If you can't it sounds like a nginx config issue. |
@Zyles Category suffix setting is empty. I don't have anything in there. I am seeing this issue on two live stores. Please see attached image. Fresh install is out of scope. I have separate config for SSL which includes the default magento nginx conf. Please see below.
|
You need to verify the issue on a fresh 2.3.3 install to determine if it is a M2 or nginx configuration issue or one of your extensions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Thank you for your contributions. |
Preconditions (*)
Steps to reproduce (*)
https://example.com/mens-wear
https://www.example.com/mens-wear/
https://www.example.com/mens-wear
Expected result (*)
Actual result (*)
The text was updated successfully, but these errors were encountered: