# Discourse rewriting url path behaviour failing due to subfolder

**URL:** <https://meta.discourse.org/t/discourse-rewriting-url-path-behaviour-failing-due-to-subfolder/94120>\
**Category:** Bug\
**Tags:** subfolder\
**Created:** [07.Август.2018 13:40:04 UTC](https://meta.discourse.org/t/discourse-rewriting-url-path-behaviour-failing-due-to-subfolder/94120 "2018-08-07T13:40:04Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [08.Август.2018 07:06:28 UTC](https://meta.discourse.org/t/discourse-rewriting-url-path-behaviour-failing-due-to-subfolder/94120/10 "2018-08-08T07:06:28Z")

</div>

It works fine when you browse to such a topic, it only fails when you come from a direct URL.

---

_[View the full topic](https://meta.discourse.org/t/discourse-rewriting-url-path-behaviour-failing-due-to-subfolder/94120)._
