Project

General

Profile

Actions

Bug #105531

closed

Generated uri is always empty if UriBuilder is injected in constructor

Added by David Hoeckele 21 days ago. Updated 20 days ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2024-11-01
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
13
PHP Version:
8.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I tried to generate an uri in a ViewHelper with the UriBuilder, the way described in documentation: https://docs.typo3.org/m/typo3/reference-coreapi/13.4/en-us/ExtensionArchitecture/Extbase/Reference/UriBuilder.html
The generated uri is always empty string. Same result with GeneralUtility::makeInstance. I tried a second example like this:

$uri = $this->uriBuilder
            ->reset()
            ->setRequest($this->getExtbaseRequest())
            ->setTargetPageUid(1)
            ->build();

and the generated link is empty string, too.

Actions

Also available in: Atom PDF