-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Do not use store code in URLs when site is in single store mode #36414
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
Do not use store code in URLs when site is in single store mode #36414
Conversation
Hi @peterjaap. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review. For more details, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @peterjaap
Thank you for your contribution
Could you please fix tests
Thank you in advance.
@andrewbess failing tests are unrelated to this change. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Hello @peterjaap
Perhaps integration tests failed due to your changes. |
@andrewbess I'd like to fix the test however it doesn't say which test it is that fails; https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/36414/a7d89a27426ba404946195eef3c612c7/Integration/allure-report-ce/index.html#categories/605f6677ce1fac53542d2dad127029aa/db44db41d1327373/ |
Hello @peterjaap |
@andrewbess thanks, I updated the test |
So everything's done and now we're waiting for someone to merge it? |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento create issue |
@magento give me test instance |
Hi @engcom-Lima. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Lima, here is your Magento Instance: https://3024fb03937cdc7efdc0f7c46992784d.instances.magento-community.engineering |
✔️ QA Passed Preconditions:
Manual testing scenario:
Before: ✖️ Store code was visible. After: ✔️ Now, store code is not visible. Addtionally tested:
No additional manual testing is required as a part of regression. |
@magento run Functional Tests CE, Unit Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
3 similar comments
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Woop, apparently this change is now available in 2.4.6 🙌 |
Description (*)
We have a store in single store mode. When we do setup:install, the config option
web/url/use_store
is enabled, which causes the store code to appear in the URL, even though there is only one storeview. This change makes sure the storecode does not appear in the URL when a store is in single store mode.Manual testing scenarios (*)
bin/magento config:set general/single_store_mode/enabled 1
) and enable store codes (bin/magento config:set web/url/use_store 1
)Questions or comments
Contribution checklist (*)
Resolved issues: