Project

General

Profile

Actions

Bug #92733

closed

rebuildSlugsForSlugChange fails when changing slug of a localized root page

Added by Oliver Bartsch over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2020-10-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Changing a slug of a site with L>0 and pid=0 throws a SiteNotFoundException on save.

That's because rebuildSlugsForSlugChange calls SiteFinder::getSiteByPageId() with the pageId of the localized page. This page however has pid=0 set.

Therefore, it's not possible find any site configuration, because they are always mapped to the uid of the default page which we can not determine in this case.

Reproduce: Change the slug field of a localized root page in the page properties and try to save the page record.

Actions

Also available in: Atom PDF