Project

General

Profile

Actions

Bug #91771

closed

f:widget.uri does not respect current page type (typeNum) on PageType enhanced URLs

Added by Stefan P almost 4 years ago. Updated over 1 year ago.

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #92529: Remove fluid widgetsClosed2020-10-09

Actions
Actions #1

Updated by Stefan P almost 4 years ago

For reference: for the time being, until this bug is fixed, I workaround like this:

Xclass the UriViewHelper, override getWidgetUri() and add this in there:

->setTargetPageType($GLOBALS['TSFE']->type)

Works in my case. Not sure if this respects all possible cases one could imagine.

Actions #2

Updated by Stefan P over 2 years ago

  • TYPO3 Version changed from 9 to 10
Actions #3

Updated by Christian Kuhn over 1 year ago

Actions #4

Updated by Christian Kuhn over 1 year ago

  • Status changed from New to Closed

I fear there isn't much we can still do here: The entire widget approach has been deprecated and removed with #92529, so this shouldn't be an issue anymore.

Actions

Also available in: Atom PDF