[BUGFIX] Ensure to use parent's page slug for generating a new pages' slug 00/58100/3
authorBenni Mack <benni@typo3.org>
Fri, 31 Aug 2018 09:43:25 +0000 (11:43 +0200)
committerFrans Saris <franssaris@gmail.com>
Fri, 31 Aug 2018 12:10:19 +0000 (14:10 +0200)
commitbdff18fb9ccbe80be70a393436988ca4261f99df
tree851620fe23dae6810fd6be11bba682090b6595fd
parenta1294227f4cd0fb79575b7dea12d7361504b0555
[BUGFIX] Ensure to use parent's page slug for generating a new pages' slug

When creating page with slug "/my-page", and then renaming the page title
to "My new page", the slug for a newly created SUBpage will be "/my-new-page/subpage",
however, it is expected to use the slug of the parent page, if it exists,
creating a new URL like "{current-slug-of-parent-page}/subpage"

Resolves: #85997
Releases: master
Change-Id: I1c6371d174c8251623e806beb1544c477c31d5b0
Reviewed-on: https://review.typo3.org/58100
Reviewed-by: Francois Suter <sutfra@gmail.com>
Tested-by: Francois Suter <sutfra@gmail.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
typo3/sysext/core/Classes/DataHandling/SlugHelper.php