#91711PageType decorated URLs do not get type parameter added when default is not empty
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).
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 6
-
S P changed subject
PageType decorated URLs do not add type paramater added when default is not emptyPageType decorated URLs do not get type parameter added when default is not empty 06/25/20, 15:19 -
Benni Mack changed Sprint Focus On Location Sprint 11/08/22, 12:38
-
Rémy DANIEL commented and changed TYPO3 Version
911 06/22/23, 15:47 -
Benni Mack changed Sprint Focus
On Location Sprint08/02/23, 13:05 -
S P commented 12/18/24, 09:28
Works in v12. Unconfigured types are always appended now as a GET parameter, independent of teh default value.
Ticket can be closed.
-
Oliver Bartsch commented and changed status
NewClosed 12/18/24, 09:29Hi, thanks for your feedback. Closing this as requested.
Reproduced in 11.5