#107417Missing page type when using routing
Description
When using routing and defining a route for a specific page type, neither in TypoScript nor PHP the “type” GET parameter is set.
This problem can be reproduced with this TypoScript:
page = PAGE
page {
100 = TEXT
100 {
data = GP:type
wrap = type is: |
}
200 = TEXT
200.value = click me
200.typolink.parameter = 222
200.typolink.additionalParams = &type=123
}
page123 < .page
page123.typeNum=123
and this Site configuration:
routeEnhancers:
PageTypeSuffix:
type: PageType
default: /
index: ''
map:
/: 0
test.html: 123
When clicking on link “click me”, the page “/test.html” is opened and page type “page123” is rendered, but “GP:type” is empty.
When removing line “test.html: 123” from site configuration, “GP:type” is set and is “123”.
I have this problem in TYPO3 v11 and v13 (and most likely in TYPO3 v12).
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 2
-
Philipp Kitzberger commented <span data-processor="relativetime" data-value="2026-02-24T08:54:47+00:00" > 02/24/26, 08:54 </span>
-
Georg Ringer commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-11-14T13:28:15+00:00" > 11/14/26, 13:28 </span>this is possible by using a bit different code
request:routing|pageType. tested in v15 but code is also the same in 13page.900 = TEXT page.900 { data = GP:type wrap = <p>GP:type is: |</p> } page.910 = TEXT page.910 { data = request:routing|pageType wrap = <p>getData request routing pageType is: |</p> } page.920 = TEXT page.920 { value = click me typolink.parameter = 46130 typolink.additionalParams = &type=123 wrap = <p>|</p> } page123 < page page123.typeNum = 123
Can confirm this bug for v13.
It kinda makes sense that the routing config is consuming this parameter but on the other hand TYPO3 should definitely appended type=123 to links generated on page123, right?