Skip to content

Commit a30d2c0

Browse files
MC-35478: Bug with Company Structure Page
1 parent 47388c6 commit a30d2c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Cms/Model/PageRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ private function getCollectionProcessor()
276276
*/
277277
private function validateRoutesDuplication($page): void
278278
{
279-
if ($this->routeConfig->getRouteByFrontName($page->getIdentifier())) {
279+
if ($this->routeConfig->getRouteByFrontName($page->getIdentifier(), 'frontend')) {
280280
throw new CouldNotSaveException(
281281
__('The value specified in the URL Key field would generate a URL that already exists.')
282282
);

0 commit comments

Comments
 (0)