# Site relative paths rewritten client side incorrectly with subfolder

**URL:** https://meta.discourse.org/t/site-relative-paths-rewritten-client-side-incorrectly-with-subfolder/192947
**Category:** Bug
**Tags:** subfolder
**Created:** [June 7, 2021, 5:25am UTC](https://meta.discourse.org/t/site-relative-paths-rewritten-client-side-incorrectly-with-subfolder/192947 "2021-06-07T05:25:50Z")
**Posts on this page:** 1
**Showing post:** 22

<div class="post-metadata">

### Author: ![Dave\_Sparks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dave_sparks/32/125614_2.png) [@Dave\_Sparks](https://meta.discourse.org/u/Dave_Sparks)
#### Post date: [June 16, 2021, 7:07am UTC](https://meta.discourse.org/t/site-relative-paths-rewritten-client-side-incorrectly-with-subfolder/192947/22 "2021-06-16T07:07:05Z")

</div>

We have also noticed that relative links to the same site such as /downloads are treated as external links and open in a new browser tab. This is not a big deal really.

Also, not a biggy, but if you remove the post id from the end of a link to a forum post link, like I did, the browser history gets lost when clicking on the link e.g. [this link](https://meta.discourse.org/t/client-side-path-rewrite-failing-with-subfolder-setup/)

---

_[View the full topic](https://meta.discourse.org/t/site-relative-paths-rewritten-client-side-incorrectly-with-subfolder/192947)._
