Answers.Body: <p>Try using <code>{{ url('/page_a') }}</code>, this should generate the correct url.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-09-25T09:30:04.577Z
Answers.LastActivityDate: 2020-09-25T09:30:04.577Z
Answers.UserDisplayName: dmatthams
Body: <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>
  
Tags: <localization><craft2>
Title: Craft 2 new locale and dealing with root-relative links
ThreadText: # 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:
  
  ```
  <a href="/page_a"> page a</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.
  
  
  ---
  
  