[TYPO3-mvc] Current page URL?

Andreas Weis andreas at tollwerk.de
Thu Jul 23 15:16:16 CEST 2009


Steffen Kamper schrieb:
> Hi,
> 
> Andreas Weis schrieb:
>> Hello,
>>
>> first of all thank you for your great great work!
>>
>> Just one question:
>> I was wondering how to get the current page URL including all parameters?
>>
>> Whether I take the typolinkURI() function from the controllerContext 
>> or even directly the currentPageUrl() from the contentObject is always 
>> get just the pageURI without any paramateres
>> i.e.
>>
>> index.php?id=3
>>
>> but not
>>
>> index.php?id=3&tx_myext_bla[controller]=hallo&no_cache=1&tx_otherextension_pi[lala]=haha 
>>
>>
>> so i don't have any chances to get own params to an existing url?
>>
> 
> use
> $this->request->hasArgument('key')
> $this->request->getArgument('key')
> for your namespacd vars
> 
> $this->request->getRequestURI() gives complete URL
> 
> vg Steffen

This is what I found too.

Unfortunately it's not the deal I need.

A short scenario:

I have a plugin where I can store favourites (just some links and pics)
This plugin is on every page of the whole site.
Of course I want the ability to remove items from the list.
So removing is pretty hard, when I want to go back to the exact page 
where I was, without the ability to just get own parameters to the 
current page-url

Am I thinking completely wrong?




More information about the TYPO3-project-typo3v4mvc mailing list