-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
not-confirmedUse for Issue that was closed during confirmationUse for Issue that was closed during confirmation
Description
Preconditions (*)
- 2.3.6
- 2.4.1
Note: 2.4.0 is not affected.
Steps to reproduce (*)
- Create a magento installation with 2 storeview (f.e. uk, us)
- Go to Stores -> Configuration -> General -> Web and set "Add Store Code to URls" to Yes
- Go to Content -> Pages and Create a CMS Page with the identifier "privacy" in the scope of the uk storeview.
- Now create a CMS Page with the identifier "privacy" in the scope of the us storeview.
Expected result (*)
- saving both cms page with the same identifier is possible due to the fact that the url is still uniqe
https://example/uk/privacy vs. https://example/us/privacy
Actual result (*)
- it is not possible to save the secound cms page.
- You will see this error in the backend "The value specified in the URL Key field would generate a URL that already exists."
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
The problem here is a new validator in https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Cms/Model/PageRepository.php#L193. This validator is only checking if there is a CMS Page with the same identifier in the hole frontend scope not the scope itself. This works in a single store / storeview shop but not in a multi store / languarge store.
Rane2k
Metadata
Metadata
Assignees
Labels
not-confirmedUse for Issue that was closed during confirmationUse for Issue that was closed during confirmation