Project

General

Profile

Actions

Bug #86990

closed

f:uri.action -> absolute not working

Added by Martin Weymayer over 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2018-11-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

f:uri.action does not add baseUrl to link when adding absolute:TRUE


Files

Selection_242.png (62.6 KB) Selection_242.png Patryk Ostrowski, 2020-01-07 15:24
Selection_243.png (47.3 KB) Selection_243.png Patryk Ostrowski, 2020-01-07 15:25
Actions #1

Updated by Riccardo De Contardi over 5 years ago

  • Category set to Fluid
Actions #2

Updated by Thomas Anders about 5 years ago

Same here.

This:

{f:uri.action(action: 'show', controller: 'Event', pageUid: settings.detailPid, arguments: '{event: eventItem}')}

Creates a relative URL like

/?tx_myext_events%5Baction%5D=show&tx_myext_events%5Bcontroller%5D=Event&tx_myext_events%5Bevent%5D=10&cHash=f3702d971c85744fa4ce8416a43c4665

It is missing the whole URL part.
My workaround is a f:link.typolink with the f:uri.action as parameter.

{f:uri.typolink(parameter: '{f:uri.action(action: \'show\', controller: \'Event\', pageUid: settings.detailPid, arguments: \'{event: eventItem}\')}')}

This works, but f:uri.action should also work on its own, especially to make quote masking unnecessary.

Actions #3

Updated by Guido Schmechel about 5 years ago

Does is it work with absolute:'true' for you?

Actions #4

Updated by Stefan Völker over 4 years ago

  • PHP Version set to 7.2

Same here - it also doesn't work with "absolute='true'", see: {f:uri.action(extensionName: 'extname', controller: 'Event', action:'show', absolute: 'true', arguments:'{event:event}',pageUid:'{settings.detailPid}',pluginName: 'Eventdetails')}

Anyone ?

Actions #5

Updated by Thomas Löffler over 4 years ago

Works for me. Seems that there is no Site configured in Site Management?

Actions #6

Updated by Chris Wiesenekker over 4 years ago

Creating a site doesn't fix it by default because the content of the base matters for the functions uri.typolink and uri.action

Possible fix?
base: 'https://%env(HTTP_HOST)%/' in the site managemant module?

Updated by Patryk Ostrowski over 4 years ago

You need just to set correct entry point in site configuration and this solve that issue. Set it like here:

I think there is nothing more to add and we can close this issue.

Actions #8

Updated by Benni Mack over 4 years ago

  • Status changed from New to Closed

Creating an absolute URL with site handling, where your "base" setting is just "/" would make TYPO3 have to "guess" again the URL, which would result in non-predictable results (as was done in the past).

It is highly recommended to use an absolute URL as base and using base variants for all the various domains that are in place to achieve this goal.

If you feel there is still something wrong, let me know, and I'll re-open the ticket.

Actions

Also available in: Atom PDF