<p>Craft CMS does absolutely nothing to your front end code, and there's literally nothing in Craft that would make anchor links – i.e. <code>&lt;a href="/tabs#anchor1"&gt;Click&lt;/a&gt;</code> – in your front end markup behave in any other way than normal.</p>

<p>The error is probably somewhere in your front end code (either in your Twig/markup or possibly in your JavaScript).</p>

CC BY-SA 3.0
2018-02-02T11:27:53.873Z
Afraid I haven't added any javascript in at this point, my markup is exactly how you've just laid it out there which is why I can't understand why it doesn't show
Amy
CC BY-SA 3.0
2018-02-01T18:17:12.727Z
2018-02-01T18:17:12.727Z
Mats Mikkel Rummelhoff
<p>I'm trying to add tabs into my Craft Site and have just noticed that when you add an anchor point, the anchor ID doesn't actually show up in the URL as it would a normal site, however I need this anchor to be able to target certain tabs in the menu. </p>

<p>Is there a way or plugin that forces to anchor to be added to the url?</p>

<p>Example: </p>

<p>mysite.com/tabs#anchor1</p>

<p>mysite.com/tabs#anchor2</p>

<p>mysite.com/tabs#anchor3</p>

<url><craft-features>
Force Anchor ID into page URL
# Force Anchor ID into page URL

(Asked by: username_0 on 2018-02-01)

I'm trying to add tabs into my Craft Site and have just noticed that when you add an anchor point, the anchor ID doesn't actually show up in the URL as it would a normal site, however I need this anchor to be able to target certain tabs in the menu.

Is there a way or plugin that forces to anchor to be added to the url?

Example:

mysite.com/tabs#anchor1

mysite.com/tabs#anchor2

mysite.com/tabs#anchor3

**Tags:** url, craft-features

---

## 1 answers

### Answer by username_1 on 2018-02-01. Score: 1

Craft CMS does absolutely nothing to your front end code, and there's literally nothing in Craft that would make anchor links – i.e. `Click` – in your front end markup behave in any other way than normal.

The error is probably somewhere in your front end code (either in your Twig/markup or possibly in your JavaScript).

> **Comments:**
> **username_0**: Afraid I haven't added any javascript in at this point, my markup is exactly how you've just laid it out there which is why I can't understand why it doesn't show  

---

