[TYPO3-mvc] controller and action cannot be excluded from url

Franz Koch typo3.RemoveForMessage at elements-net.de
Wed Apr 28 16:05:44 CEST 2010


>> linking to an action inside the same controller without setting it's
>> name over and over again.
> Exactly :)

but if I don't need/want the controller name in the URL over and over 
again? ;) There are pro's and con's for both situations. In FLOW3 the 
controller must be given in the URL IIRC, but in TYPO3 v4 with realUrl 
you're going nuts trying to get clean URLs with all those controller and 
action dependencies.

So maybe only append the controller in the URL if a) a different action 
name then the default one is given and/or b) it's a link to a different 
page.

So:

<f:link.action arguments="{}">no action and no controller in the URL 
</f:link.action>

<f:link.action action="foo">no controller in the URL if current 
controller is the default one</f:link.action>

<f:link.action arguments="{}" pageUid="123">no action and no controller 
in the URL</f:link.action>

<f:link.action action="foo" pageUid="123">controller and action in the 
URL</f:link>

<f:link.action controller="" action="foo" pageUid="123">controller is 
left out in URL</f:link.action>


-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list