Bug #86740

Using slash in slug in extension record throws exception in frontend

Added by Chris Müller 4 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2018-10-25
Due date:
% Done:

100%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint

Description

I am using a slug TCA field in an extension record. The slug content is build from a title which can contains a slash (/). The slash is also took into the slug field:

Calling the frontend list page of the extension, I got an exception:

My TCA configuration is as follows:

'path_segment' => [
    'label' => 'Path segment',
    'exclude' => true,
    'config' => [
        'type' => 'slug',
        'generatorOptions' => [
            'fields' => ['title'],
            'fieldSeparator' => '/',
            'prefixParentPageSlug' => false,
        ],
        'fallbackCharacter' => '-',
        'eval' => 'uniqueInPid',
     ],
],

As I understand from the manual (https://docs.typo3.org/typo3cms/TCAReference/ColumnsConfig/Type/Slug.html) given the fieldSeparator, this character should be replaced by the fallbackCharacter.

slug.png View (16.3 KB) Chris Müller, 2018-10-25 09:21

exception.png View (88.6 KB) Chris Müller, 2018-10-25 09:23


Related issues

Related to TYPO3 Core - Bug #86596: Slash in Page Title still in URL Closed 2018-10-08
Related to TYPO3 Core - Bug #87667: Replacements not applied for existing slug New 2019-02-06
Duplicated by TYPO3 Core - Bug #87656: Slugs error if title has "/" in extbase extension Closed 2019-02-05

Associated revisions

Revision 1618bd19 (diff)
Added by Georg Ringer 2 months ago

[FEATURE] Allow replacing strings in slug

The new setting `replacement` makes it possible to search and replace
strings inside a slug.

Resolves: #86740
Releases: master
Change-Id: Icc8fe167fcb5d48502ace2c43e0535884bc10341
Reviewed-on: https://review.typo3.org/58851
Reviewed-by: Markus Klein <>
Reviewed-by: Peter Kraume <>
Tested-by: Peter Kraume <>
Tested-by: TYPO3com <>
Reviewed-by: Jörg Bösche <>
Tested-by: Joerg Kummer <>
Reviewed-by: Josef Glatz <>
Tested-by: Josef Glatz <>
Reviewed-by: Jan Helke <>
Tested-by: Jan Helke <>

History

#1 Updated by Susanne Moog 4 months ago

  • Sprint Focus set to On Location Sprint

#2 Updated by Gerrit Code Review 3 months ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58851

#3 Updated by Gerrit Code Review 3 months ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58851

#4 Updated by Gerrit Code Review 3 months ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58851

#5 Updated by Gerrit Code Review 3 months ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58851

#6 Updated by Gerrit Code Review 3 months ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58851

#7 Updated by Gerrit Code Review 3 months ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58851

#8 Updated by Gerrit Code Review 3 months ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58851

#9 Updated by Gerrit Code Review 3 months ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58851

#10 Updated by Gerrit Code Review 3 months ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58851

#11 Updated by Gerrit Code Review 3 months ago

Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58851

#12 Updated by Gerrit Code Review 3 months ago

Patch set 11 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58851

#13 Updated by Gerrit Code Review 3 months ago

Patch set 12 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58851

#14 Updated by Peter Kraume 3 months ago

  • Related to Bug #86596: Slash in Page Title still in URL added

#15 Updated by Gerrit Code Review 2 months ago

Patch set 13 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58851

#16 Updated by Gerrit Code Review 2 months ago

Patch set 14 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58851

#17 Updated by Gerrit Code Review 2 months ago

Patch set 15 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58851

#18 Updated by Georg Ringer 2 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#19 Updated by Georg Ringer 12 days ago

  • Duplicated by Bug #87656: Slugs error if title has "/" in extbase extension added

#20 Updated by Mathias Brodala 10 days ago

  • Related to Bug #87667: Replacements not applied for existing slug added

Also available in: Atom PDF