Hi,

I am trying to link back to home page without entering full url or node id. Instead, I am trying to link back using below. None worked.

<a href="front">Homes 4 U</a>
<a href="<front>"> Homes 4 U</a>
<a href="home"> Homes 4 U</a>

Please advise.

Comments

Jaypan’s picture

<a href="/"> Homes 4 U</a>

Yogesh Kushwaha’s picture

You can do it by using built in l() function

global $base_url;
echo l(t('Home'), $base_url);

--
Yogesh Kushwaha