Bug #91711

PageType decorated URLs do not get type parameter added when default is not empty

Added by Stefan P 17 days ago. Updated 17 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2020-06-25
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

The solution for #87817 works only for empty defaults, not for non-empty defaults. The default must be allowed to be non-empty and still allow the type parameter for different typeNum.

  PageTypeSuffix:
    type: PageType
    default: '.html'
    index: 'index'
    map: []

Currently links to type > 0 will just create urls like /my/path/to/site.html - but of course they still need to append the type parameter ?type=123 to work correctly.

This is because resolveValue() returns the default and afterwards it is checked if the returned value is empty (which it never is if a default is set).

History

#1 Updated by Stefan P 17 days ago

  • Subject changed from PageType decorated URLs do not add type paramater added when default is not empty to PageType decorated URLs do not get type parameter added when default is not empty

Also available in: Atom PDF