Project

General

Profile

Actions

Bug #87436

closed

Routing: empty 'defaults' entry does not work

Added by Wolfgang Klinger almost 6 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2019-01-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
pending-close
Complexity:
Is Regression:
Sprint Focus:

Description

Example:

    routes:
      - { routePath: '/filter/{semester}/{level}/{language}/{topic}', _controller: 'Something::index', _arguments: {'semester': 'semester', 'level': 'level', 'language': 'language', 'topic': 'topic'} }
    defaults:
      semester: '0'
      level: '0'
      language: '0'
      topic: ''

I want to have 'topic' as optional parameter.
The configuration above does not work.

`www.something.com/some/page/filter/1/2/3/something/` works
`www.something.com/some/page/filter/1/2/3/something` works
`www.something.com/some/page/filter/1/2/3//` does not work
`www.something.com/some/page/filter/1/2/3/` does not work
`www.something.com/some/page/filter/1/2/3` does not work

Solution for now is to add a second route without the topic


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #86895: routeEnhancer not working correct for paginate widgetClosed2018-11-09

Actions
Actions

Also available in: Atom PDF