<p>Try using <code>{{ url('/page_a') }}</code>, this should generate the correct url.</p>

CC BY-SA 4.0
2020-09-25T09:30:04.577Z
2020-09-25T09:30:04.577Z
dmatthams
<p>Hi I am adding new locale which is jp and I have a huge problem with href tag.<br>
Our paragraph field have href links using relative link like this:<br></p>
<pre><code>&lt;a href=&quot;/page_a&quot;&gt; page a&lt;/a&gt;
</code></pre>
<p>When I hover to the link. It show &quot;example.com/page_a&quot; instead of &quot;example.com/jp/page_a&quot;.
Our siteUrl was set up correctly which is shows example.com/jp.<br>
Is anyone face this issue before and how to handle it.</p>

<localization><craft2>
Craft 2 new locale and dealing with root-relative links
# Craft 2 new locale and dealing with root-relative links

(Asked by: username_0 on 2020-09-19)

Hi I am adding new locale which is jp and I have a huge problem with href tag.
Our paragraph field have href links using relative link like this:
 page a

When I hover to the link. It show "example.com/page_a" instead of "example.com/jp/page_a".
Our siteUrl was set up correctly which is shows example.com/jp.
Is anyone face this issue before and how to handle it.

**Tags:** localization, craft2


---

## 1 answers

### Answer by username_1 on 2020-09-25. Score: 1

Try using `{{ url('/page_a') }}`, this should generate the correct url.


---

