Bug #87104

PageTypeSuffix removes type parameter for non mapped type values

Added by Steffen Mächtel 3 days ago. Updated 2 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2018-12-07
Due date:
% Done:

0%

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

Description

Tested with 9.5.1 and 9.5.2-dev

When i use the PageTypeSuffix, all non mapped type values are removed from url. In this example "type=5" is not configurated in the sites/config.yaml.
Non mapped types should be append as query string?

    PageTypeSuffix:
        type: PageType
        default: .html
        index: 'home'
        map:
            .html: 0
            .json: 3

With PageTypeSuffix:

when i try to generate a link for type = 5, the type parameter is not available in the url. (its removed)

Without PageTypeSuffix:

when i remove the PageTypeSuffix configuration complete, the generated urls are valid.

page_type_suffix.png View (33.4 KB) Steffen Mächtel, 2018-12-07 17:02

without_page_type_suffix.png View (24.9 KB) Steffen Mächtel, 2018-12-07 17:02

example_code.txt View (931 Bytes) Steffen Mächtel, 2018-12-07 17:02

History

#1 Updated by Gerrit Code Review 2 days ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59060

#2 Updated by Anja Leichsenring 2 days ago

  • Status changed from Under Review to New

Also available in: Atom PDF