Project

General

Profile

Actions

Bug #91711

open

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

Added by Stefan P almost 4 years ago. Updated 9 months ago.

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

0%

Estimated time:
TYPO3 Version:
11
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).

Actions #1

Updated by Stefan P almost 4 years 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
Actions #2

Updated by Benni Mack over 1 year ago

  • Sprint Focus set to On Location Sprint
Actions #3

Updated by Rémy DANIEL 10 months ago

  • TYPO3 Version changed from 9 to 11

Reproduced in 11.5

Actions #4

Updated by Benni Mack 9 months ago

  • Sprint Focus deleted (On Location Sprint)
Actions

Also available in: Atom PDF