Actions
Bug #91771
closedf:widget.uri does not respect current page type (typeNum) on PageType enhanced URLs
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2020-07-09
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
type typenum fluid paginate pagination
Complexity:
Is Regression:
Sprint Focus:
Description
When using f:widget.paginate
on a typeNum > 0 the page links are generated for type = 0 instead if the type is hidden behind a PageType decorated URL.
This is the code for building the link. It's missing the setTargetPageType()
call
return $uriBuilder->reset()
->setArguments([$argumentPrefix => $parameters])
->setSection($arguments['section'])
->setUseCacheHash($arguments['useCacheHash'])
->setAddQueryString(true)
->setAddQueryStringMethod($arguments['addQueryStringMethod'])
->setArgumentsToBeExcludedFromQueryString([$argumentPrefix, 'cHash'])
->setFormat($arguments['format'])
->build();
It works when NOT mapping the type via routing (then it is just a query string and is re-added), but when it is mapped to something fancy via route enhancer it is no query parameter anymore and thus will get ignored.
Actions