# Проблемы с Relative\_url\_root: неверная ссылка «Latest» и некорректное перенаправление

**URL:** <https://meta.discourse.org/t/relative-url-root-issues-incorrect-latest-link-incorrect-redirect/163266>\
**Category:** Bug\
**Created:** [07.Сентябрь.2020 14:57:49 UTC](https://meta.discourse.org/t/relative-url-root-issues-incorrect-latest-link-incorrect-redirect/163266 "2020-09-07T14:57:49Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [16.Сентябрь.2020 06:45:15 UTC](https://meta.discourse.org/t/relative-url-root-issues-incorrect-latest-link-incorrect-redirect/163266/7 "2020-09-16T06:45:15Z")

</div>

> [@akvadrako](#):
>
> Я пытался проверить, можно ли создавать ссылки на категории без завершающего номера, например `/forum/c/staff`. Это не работает, так как происходит перенаправление на `/forum/forum/c/staff/3`.

Исправлено через:

> <https://github.com/discourse/discourse/commit/32d6286bea8140329d4248f30877240244330636>
>
> https://meta.discourse.org/t/relative-url-root-issues-incorrect-latest-link-inco…rrect-redirect/163266
> 
> URLs like \`/forum/c/staff\` (subfolder setup) were landing on
> \`/forum/forum/c/staff/3\`. Note the extra "/forum". This commit
> strips the redundant subfolder path from category URL.

> [@akvadrako](#):
>
> «Последние» на главной странице должны вести на `/latest`, а не на `/forum/latest`.

> [@pfaffman](#):
>
> Я вижу ссылки подтверждения администратора с дублированием `relaztive_url_root` в версии 2.5.0.

Мне не удалось воспроизвести обе вышеуказанные проблемы на последней версии Discourse.

---

_[View the full topic](https://meta.discourse.org/t/relative-url-root-issues-incorrect-latest-link-incorrect-redirect/163266)._
