Skip to content
Snippets Groups Projects
Commit 1e2f5733 authored by Elias Häußler's avatar Elias Häußler Committed by Benni Mack
Browse files

[BUGFIX] Improve visual output of slug proposal

If slugs are generated within Backend forms, the visual output (= label
below slug field) of the generated slug proposal might be broken if no
slash is prepended to the generated slug. This might be the case in custom
database tables where custom slug fields are defined with the
configuration "prependSlash" set to "false" (which is the default value).
It can also be the case if the configuration "prefixParentPageSlug" is set
to "false".

In order to ensure a clean visual output for those labels, the slug
proposalwithin them will now always be prepended by a slash. This makes
sure that the resulting url which is shown within those labels is always
valid. Note that this only effects visual output and is not meant to
modify any slug proposal generated by the SlugHelper class.

Resolves: #90222
Releases: master, 9.5
Change-Id: I93587cfec0db6c3d889fdce60a4515ef47decc82
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63051


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatartheline <typo3@theline.capella.uberspace.de>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatartheline <typo3@theline.capella.uberspace.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent e9799351
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment