Bug #87436

Routing: empty 'defaults' entry does not work

Added by Wolfgang Klinger 7 months ago. Updated 7 months ago.

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

0%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
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

Related to TYPO3 Core - Bug #86895: routeEnhancer not working correct for paginate widget Under Review 2018-11-09

History

#1 Updated by Wolfgang Klinger 7 months ago

  • Related to Bug #86895: routeEnhancer not working correct for paginate widget added

#2 Updated by Wolfgang Klinger 7 months ago

  • Category changed from Frontend to Link Handling, Site Handling & Routing

Also available in: Atom PDF