# В компоненте: как узнать базовый URI форума?

**URL:** https://meta.discourse.org/t/in-a-component-how-do-i-find-out-the-base-uri-of-the-forum/370106
**Category:** Development
**Created:** [13.Июнь.2025 17:29:12 UTC](https://meta.discourse.org/t/in-a-component-how-do-i-find-out-the-base-uri-of-the-forum/370106 "2025-06-13T17:29:12Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Willy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/willy/32/499930_2.png) [@Willy](https://meta.discourse.org/u/Willy)
#### Post date: [13.Июнь.2025 17:29:12 UTC](https://meta.discourse.org/t/in-a-component-how-do-i-find-out-the-base-uri-of-the-forum/370106/1 "2025-06-13T17:29:12Z")

</div>

Если мой компонент установлен на трёх разных форумах:

> [https://forum.someone.com/](https://forum.someone.com/)  
> [https://other.com/forum](https://other.com/forum)  
> [https://player.com/](https://player.com/)

Как мне извлечь базовый URI, если я нахожусь в подкаталоге, например `https://forum.someone.com/mytopic/blablaba`?

---

_[View the full topic](https://meta.discourse.org/t/in-a-component-how-do-i-find-out-the-base-uri-of-the-forum/370106)._
