# Discourse 重写 URL 路径行为因子目录而失败

**URL:** https://meta.discourse.org/t/discourse-rewriting-url-path-behaviour-failing-due-to-subfolder/94120
**Category:** Bug
**Tags:** subfolder
**Created:** [2018 年8 月 7 日 13:40 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:** 12

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [2018 年8 月 8 日 18:04 UTC](https://meta.discourse.org/t/discourse-rewriting-url-path-behaviour-failing-due-to-subfolder/94120/12 "2018-08-08T18:04:45Z")

</div>

I pushed a fix that looks only at the beginning of the path which avoids this problem. Unless you use `/t`, `/u`, or something like that, but that would be a terrible idea for many reasons.

---

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