We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47388c6 commit a30d2c0Copy full SHA for a30d2c0
app/code/Magento/Cms/Model/PageRepository.php
@@ -276,7 +276,7 @@ private function getCollectionProcessor()
276
*/
277
private function validateRoutesDuplication($page): void
278
{
279
- if ($this->routeConfig->getRouteByFrontName($page->getIdentifier())) {
+ if ($this->routeConfig->getRouteByFrontName($page->getIdentifier(), 'frontend')) {
280
throw new CouldNotSaveException(
281
__('The value specified in the URL Key field would generate a URL that already exists.')
282
);
0 commit comments