Issue Bug Rejected

#58702f:uri.page Viewhelper creates broken links on cli

Matthias Krappitz 05/12/14, 00:16 updated 09/24/15, 01:12

Description

I’m sending out emails via an Extbase Command Controller on the shell / cli. The email text is rendered by a fluid standalone view. All links in this template are rendered wrong by f:uri.page. I never tried this before in that combination, so am unsure if this new with 6.2 or has been around for longer.

command controller part:
…
$view = $this->objectManager->get(‘TYPO3\CMS\Fluid\View\StandaloneView’);
$view->setTemplatePathAndFilename(PATH_site . ‘…’);
…
// various assignments
…
$content = $view->render();
…

fluid template:
…
{settings.siteUrl}<f:uri pageuid="{settings.someExistingPageUid}" additionalparams="{tx_this_that : {someObject: someObject}}"></f:uri>
…

rendered result:
…
http://www.something.com/mod.php?moduleToken=3768ed83b6ed374301a759f0e654b7d73d5058c5&tx_this_that%5BsomeObject%5D=1234
…

expected result would have been a realurl’d url to the given page with the one get parameter added to it. Instead i get a backend module link.

For further information on this issue don’t hesitate to contact me at info@aemka.de.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.