# Address Bar changes under subfolder

**URL:** <https://meta.discourse.org/t/address-bar-changes-under-subfolder/154268>\
**Category:** Product Support\
**Created:** [June 9, 2020, 6:58am UTC](https://meta.discourse.org/t/address-bar-changes-under-subfolder/154268 "2020-06-09T06:58:47Z")\
**Posts on this page:** 2\
**Page:** 1

## AI-generated summary

[Marco_Vasapollo](/t/-/154268/1) reports issues configuring a Discourse instance to run under a subfolder (`https://include.metaring.com/discourse`). They note that the browser's address bar incorrectly removes the `/discourse` path when navigating to specific pages like topics or the admin panel, causing the back button to fail and the site to appear unreachable. In response, [codinghorror](/t/-/154268/2) advises that subfolder configurations are significantly more complex and recommends hosting the site at the root domain (`https://include.metaring.com/`) instead. If a subfolder is strictly necessary, they suggest carefully reviewing the relevant documentation topics on Meta for proper setup.

<div class="post-metadata">

**Author:** ![Marco\_Vasapollo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marco_vasapollo/32/154179_2.png) [@Marco\_Vasapollo](https://meta.discourse.org/u/Marco_Vasapollo)\
**Post date:** [June 9, 2020, 6:58am UTC](https://meta.discourse.org/t/address-bar-changes-under-subfolder/154268/1 "2020-06-09T06:58:47Z")

</div>

I successfully set up my Discourse instance to run it under a subfolder:

`https:://include.metaring.com/discourse`

The problem is that it seems the client changes the address bar content every time some action is executed (a open admin panel, visit a topic ecc).

Let’s say for example that I am in the homepage, the address bar shows:  
`https://include.metaring.com/discourse`

Now i want to click on a topic, the address bar updates to:  
`https://include.metaring.com/t/xxxxx`

The /discourse path disappears, so when I try to click on the back button on the browser the site appears to be unreachable

Can someone tell me what i need to edit to let it work?

Thanks

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [June 28, 2020, 5:18pm UTC](https://meta.discourse.org/t/address-bar-changes-under-subfolder/154268/2 "2020-06-28T17:18:00Z")

</div>

Subfolder configurations are much more complex, we recommend you skip running in a subfolder and just have the Discourse site at

`https://include.metaring.com/`

not

`https://include.metaring.com/discourse`

If you really must have it in a subfolder be sure to check the relevant documentation topics here on meta closely.
