Issue Bug Closed

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

S P 06/25/20, 15:16 updated 12/18/24, 09:29

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

  1. S P changed subject PageType decorated URLs do not add type paramater added when default is not empty PageType decorated URLs do not get type parameter added when default is not empty 06/25/20, 15:19

  2. Benni Mack changed Sprint Focus On Location Sprint 11/08/22, 12:38

  3. Rémy DANIEL commented and changed TYPO3 Version 9 11 06/22/23, 15:47

    Reproduced in 11.5

  4. Benni Mack changed Sprint Focus On Location Sprint 08/02/23, 13:05

  5. 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.

  6. Oliver Bartsch commented and changed status New Closed 12/18/24, 09:29

    Hi, thanks for your feedback. Closing this as requested.