Project

General

Profile

Actions

Bug #86740

closed

Using slash in slug in extension record throws exception in frontend

Added by Chris Müller over 5 years ago. Updated almost 5 years ago.

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

100%

Estimated time:
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.


Files

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

Related issues 3 (1 open2 closed)

Related to TYPO3 Core - Bug #86596: Slash in Page Title still in URLClosed2018-10-08

Actions
Related to TYPO3 Core - Bug #87667: Replacements not applied for existing slugNew2019-02-06

Actions
Has duplicate TYPO3 Core - Bug #87656: Slugs error if title has "/" in extbase extensionClosed2019-02-05

Actions
Actions #1

Updated by Susanne Moog over 5 years ago

  • Sprint Focus set to On Location Sprint
Actions #2

Updated by Gerrit Code Review over 5 years 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

Actions #3

Updated by Gerrit Code Review over 5 years 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

Actions #4

Updated by Gerrit Code Review over 5 years 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

Actions #5

Updated by Gerrit Code Review over 5 years 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

Actions #6

Updated by Gerrit Code Review over 5 years 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

Actions #7

Updated by Gerrit Code Review over 5 years 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

Actions #8

Updated by Gerrit Code Review over 5 years 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

Actions #9

Updated by Gerrit Code Review over 5 years 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

Actions #10

Updated by Gerrit Code Review over 5 years 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

Actions #11

Updated by Gerrit Code Review over 5 years 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

Actions #12

Updated by Gerrit Code Review over 5 years 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

Actions #13

Updated by Gerrit Code Review about 5 years 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

Actions #14

Updated by Peter Kraume about 5 years ago

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

Updated by Gerrit Code Review about 5 years 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

Actions #16

Updated by Gerrit Code Review about 5 years 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

Actions #17

Updated by Gerrit Code Review about 5 years 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

Actions #18

Updated by Georg Ringer about 5 years ago

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

Updated by Georg Ringer about 5 years ago

  • Has duplicate Bug #87656: Slugs error if title has "/" in extbase extension added
Actions #20

Updated by Mathias Brodala about 5 years ago

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

Updated by Benni Mack almost 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF