Home_url with anchor at the end

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


How to do it with grav?
dont work for me. Please, can anyone help me with that?

Perhaps you can find an answer in the documentation: learn.getgrav.org/content/linking?

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>