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

Also available in: Atom PDF