# Anchors in HTML blocks go to home page

**URL:** <https://community.weweb.io/t/anchors-in-html-blocks-go-to-home-page/6433>\
**Category:** How do I?\
**Created:** [January 17, 2024, 2:42am UTC](https://community.weweb.io/t/anchors-in-html-blocks-go-to-home-page/6433 "2024-01-17T02:42:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SteveD](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/steved/32/6305_2.png) [@SteveD](https://community.weweb.io/u/SteveD)\
**Post date:** [January 17, 2024, 2:42am UTC](https://community.weweb.io/t/anchors-in-html-blocks-go-to-home-page/6433/1 "2024-01-17T02:42:18Z")

</div>

My site has a home page ([www.mysite.com](http://www.mysite.com)) and a privacy page ([www.mysite.com/privacy](http://www.mysite.com/privacy)) with our Privacy Policy. The privacy page is a section with an HTML block, into which I pasted HTML code that includes anchors to navigate the text (href=“#toc” for example). In an html editor the anchors work fine but on my published WeWeb site clicking on such an anchor in the privacy page takes me to the home page ([www.mysite.com#toc](http://www.mysite.com#toc)). When I manually type in the url “[www.mysite.com/privacy/#toc](http://www.mysite.com/privacy/#toc)” I’m taken to the correct tag location in the privacy page.

How do I get the tags to link to the correct (privacy) page? Thank you in advance.
