[SOLVED] URI to first level root in HTML-Template


(Bernhard Witz) #1

An easy question. How can I write this href URI to the homepage that it works in the frontend and backend?

<a href="./" class="site--logo"><!-- logo --></a>

Do I have to use the f:uri.action?
http://neos.readthedocs.io/en/stable/References/ViewHelpers/FluidAdaptor.html#f-uri-action


(Rene Rehme) #2

If you want to link to your first level root (homepage) you can do it like this:

<a href="{neos:uri.node(node: '~')}" class="site--logo"><!-- your logo --></a>

(Bernhard Witz) #3

Cool! It works. Thank you!