Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Home_url with anchor at the end

Started by Matt 9 years ago · 2 replies · 1106 views
9 years ago

I'm using home_url variable to redirect users to my home page. But I want to redirect it to specific page. So, in normal html I can do something like this

mypage.com/#myanchor

How to do it with grav?
{{home_url}}/#anchor
dont work for me. Please, can anyone help me with that?

last edited 01/15/18 by Matt
9 years ago

Hi
What sort of link are you getting with home_url? I've got something like this using base_url working just fine on my policies page so I'd think the same idea would work on the homepage.

<a href="{{ base_url }}/policies#_cookie">Cookie Policy</a>

Suggested topics

Topic Participants Replies Views Activity
Support · by Anna, 4 days ago
1 96 4 days ago
Support · by Anna, 3 weeks ago
1 265 3 weeks ago
Support · by webmasterodp, 1 month ago
4 380 1 month ago
Support · by nwhitfield, 1 month ago
2 351 1 month ago
Support · by stell, 2 months ago
5 657 1 month ago