# Home logo url points to the root of the domain even in a subfolder install?

**URL:** https://meta.discourse.org/t/home-logo-url-points-to-the-root-of-the-domain-even-in-a-subfolder-install/44864
**Category:** Development
**Created:** [26 Maio , 2016 19:23 UTC](https://meta.discourse.org/t/home-logo-url-points-to-the-root-of-the-domain-even-in-a-subfolder-install/44864 "2016-05-26T19:23:42Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![iva](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iva/32/120762_2.png) [@iva](https://meta.discourse.org/u/iva)
#### Post date: [26 Maio , 2016 19:23 UTC](https://meta.discourse.org/t/home-logo-url-points-to-the-root-of-the-domain-even-in-a-subfolder-install/44864/1 "2016-05-26T19:23:42Z")

</div>

I just noticed that the logo (home) url points to the ‘/’ of the domain in my subfolder installation and yet, when I click on it, in most cases it correctly brings me to the root of the community, which is ‘/forum’ in my installation. Is it supposed to be like that? How is it implemented?

The reason I bring this up, and how I noticed this in the first place, is that it somehow broke down for me earlier today. I.e. clicking on the home logo began bringing me to the root of the entire website, not the root of the community. I then rebuilt the container and it seems to have fixed it.

How how exactly does this work and why not put the correct community root url in the header in the first place?

---

<div class="post-metadata">

### Author: ![BenRoe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benroe/32/121303_2.png) [@BenRoe](https://meta.discourse.org/u/BenRoe)
#### Post date: [12 Julho , 2016 13:43 UTC](https://meta.discourse.org/t/home-logo-url-points-to-the-root-of-the-domain-even-in-a-subfolder-install/44864/2 "2016-07-12T13:43:32Z")

</div>

I have the same question/problem. How to change the behavior to link to the root url and not to the Discourse Main page?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [12 Julho , 2016 13:57 UTC](https://meta.discourse.org/t/home-logo-url-points-to-the-root-of-the-domain-even-in-a-subfolder-install/44864/3 "2016-07-12T13:57:18Z")

</div>

> [@BenRoe](#):
>
> I have the same question/problem. How to change the behavior to link to the root url and not to the Discourse Main page?

Do you want to make logo go to the main domain right?

> [@Redirect / for non-logged in users?](https://meta.discourse.org/t/redirect-for-non-logged-in-users/33500/31):
>
> Should this work? \<script type="text/discourse-plugin" version="0.4"\> api.changeWidgetSetting('home-logo', 'href', function() { return 'https://example.com.br'; }); \</script\> EDIT: Setting it to ‘/another/page’ when using Discourse under ‘/forum’ also breaks sadpanda.

---

<div class="post-metadata">

### Author: ![BenRoe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benroe/32/121303_2.png) [@BenRoe](https://meta.discourse.org/u/BenRoe)
#### Post date: [12 Julho , 2016 14:08 UTC](https://meta.discourse.org/t/home-logo-url-points-to-the-root-of-the-domain-even-in-a-subfolder-install/44864/4 "2016-07-12T14:08:19Z")

</div>

It’s not working. It points to [https://example.com](https://example.com), but it redirects to the [https://example.com/forum](https://example.com/forum)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [12 Julho , 2016 14:47 UTC](https://meta.discourse.org/t/home-logo-url-points-to-the-root-of-the-domain-even-in-a-subfolder-install/44864/5 "2016-07-12T14:47:03Z")

</div>

If it still not working we need to ping @eviltrout because the fix above didn’t work then =(

> [@Redirect / for non-logged in users?](https://meta.discourse.org/t/redirect-for-non-logged-in-users/33500/32):
>
> This should fix it:

I was an avid user of this, but I’m not using subfolder anymore, so I can’t test.

---

<div class="post-metadata">

### Author: ![doserved](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@doserved](https://meta.discourse.org/u/doserved)
#### Post date: [4 Outubro , 2016 15:44 UTC](https://meta.discourse.org/t/home-logo-url-points-to-the-root-of-the-domain-even-in-a-subfolder-install/44864/6 "2016-10-04T15:44:11Z")

</div>

> [@BenRoe](#):
>
> It’s not working. It points to [https://example.com](https://example.com), but it redirects to the [https://example.com/forum](https://example.com/forum)

I have the same issue.
