# edge case 子文件夹设置中的 FAQ 链接问题

**URL:** <https://meta.discourse.org/t/issue-with-faq-link-on-edge-case-subfolder-setup/181798>\
**Category:** Bug\
**Tags:** subfolder\
**Created:** [2021年三月3日 16:26 UTC](https://meta.discourse.org/t/issue-with-faq-link-on-edge-case-subfolder-setup/181798 "2021-03-03T16:26:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)\
**Post date:** [2021年三月3日 17:14 UTC](https://meta.discourse.org/t/issue-with-faq-link-on-edge-case-subfolder-setup/181798/2 "2021-03-03T17:14:16Z")

</div>

我已提交一个 PR 来解决 `get-url` 问题：

> <https://github.com/discourse/discourse/pull/12284>
>
> Issue was reported on https://meta.discourse.org/t/-/181798
> 
> DEV: test getURL …for urls starting with the prefix without trailing slash
> 
> I tried to avoid more friction so \`withoutPrefix(prefix)\` now returns "/" instead of "", which is consistent to other results – but it can be addressed if needed.

关于 `/f/faq` 和 `/f/favicon/proxied` 出现的 404 错误，当我在容器内部绕过 Nginx 直接 CURL 这些路由时，它们可以正常工作。我通过将 [Serve Discourse from a subfolder (path prefix) instead of a subdomain](https://meta.discourse.org/t/subfolder-support-with-docker/30507) 中描述的 `location` 指令从 `location /subfolder` 修改为 `location /subfolder/` 解决了该问题。

导航栏同时显示“指南”和“常见问题”是 [预期行为](https://github.com/discourse/discourse/blob/a0bbc346cb5d5b89d1a3efdfa89869349a8b067f/app/assets/javascripts/discourse/app/templates/about.hbs#L7)，用户不太可能将 `faq url` 覆盖为相同的 URL。

---

_[View the full topic](https://meta.discourse.org/t/issue-with-faq-link-on-edge-case-subfolder-setup/181798)._
