[BUGFIX] Skip special doktype parent pages in slug generation 73/58473/4
authorBenni Mack <benni@typo3.org>
Sat, 29 Sep 2018 18:57:24 +0000 (20:57 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Sun, 30 Sep 2018 17:37:30 +0000 (19:37 +0200)
commita295896482f5c1b81ca25e4728127a26c052d455
tree60badae907aa6fe73e093ae0c3cbfef659e2df50
parent28037e005435ad01f90655e7d4e7b3144a5f91af
[BUGFIX] Skip special doktype parent pages in slug generation

When checking the parent page for an existing slug, the parent page
should not be used if the parent page is a sys folder, spacer or
recycler (pages.doktype), but the traversal goes up.

This makes it a bit easier for editors to work with better-speaking
URLs and keep the rootline traversal as best practice.

Resolves: #86456
Releases: master
Change-Id: I2c46d096e41fb3a325fd42bf86b8968b79d6305b
Reviewed-on: https://review.typo3.org/58473
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/core/Classes/DataHandling/SlugHelper.php
typo3/sysext/core/Tests/Unit/DataHandling/SlugHelperTest.php