# روابط معطلة في تثبيتات المجلدات الفرعية

**URL:** https://meta.discourse.org/t/broken-links-in-subfolder-installs/100355
**Category:** Bug
**Created:** [24 أكتوبر 2018، 1:25م UTC](https://meta.discourse.org/t/broken-links-in-subfolder-installs/100355 "2018-10-24T13:25:26Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [24 أكتوبر 2018، 1:25م UTC](https://meta.discourse.org/t/broken-links-in-subfolder-installs/100355/1 "2018-10-24T13:25:26Z")

</div>

The following templates reference `/my/...` for the URL

- discourse\_narrative\_bot.advanced\_user\_narrative.start\_message
- discourse\_narrative\_bot.advanced\_user\_narrative.change\_topic\_notification\_level.reply
- system\_messages.welcome\_tl1\_user.text\_body\_template

Other translations are handling this correctly by using `%{base_url}/my/...` so that it puts the correct domain/subfolder in the URL. Examples below:

- badges.autobiographer.description
- badges.autobiographer.long\_description
- system\_messages.email\_revoked.text\_body\_template
- system\_messages.new\_user\_of\_the\_month.text\_body\_template
- system\_messages.usage\_tips.text\_body\_template

I uncovered all of these searching for `/my/` in the templates, there could be others.

I’ve modified the templates in question on our installation to have `/community/my/...` as I didn’t want to assume the `%{base_url}` variable would be available. Which gets our community around it for now.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [24 أكتوبر 2018، 1:39م UTC](https://meta.discourse.org/t/broken-links-in-subfolder-installs/100355/2 "2018-10-24T13:39:04Z")

</div>

There’s already a PR about that specific issue

[https://github.com/discourse/discourse/pull/6510](https://github.com/discourse/discourse/pull/6510)

Needs some more work though.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [24 أكتوبر 2018، 1:43م UTC](https://meta.discourse.org/t/broken-links-in-subfolder-installs/100355/3 "2018-10-24T13:43:13Z")

</div>

Ah, I thought this felt familiar, but for the life of me couldn’t find the topic on it. 🙂

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [24 أكتوبر 2018، 6:31م UTC](https://meta.discourse.org/t/broken-links-in-subfolder-installs/100355/4 "2018-10-24T18:31:56Z")

</div>

> [@cpradio](#):
>
> I’ve modified the templates in question on our installation

Another solution, that I think I’ve used before, is to do the redirect from `/my/` to `/community/my/` is to do it with an nginx redirect.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [24 أكتوبر 2018، 6:45م UTC](https://meta.discourse.org/t/broken-links-in-subfolder-installs/100355/5 "2018-10-24T18:45:15Z")

</div>

Sadly, that is outside of what I have access to. I only run the Discourse instance and by run, I mean purely from the Discourse Software. I do not have access to the infrastructure or our proxy setups.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [24 أكتوبر 2018، 7:04م UTC](https://meta.discourse.org/t/broken-links-in-subfolder-installs/100355/6 "2018-10-24T19:04:15Z")

</div>

> [@cpradio](#):
>
> Sadly, that is outside of what I have access to.

I’m not sure it’s _sad._ 😉

Even if you could do it that way, I wasn’t suggesting that you change your functional work-around to a different one! I just added it in case it’d work for someone else.

Sounds like it’ll be fixed before a whole lot longer anyway.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [24 أكتوبر 2018، 7:22م UTC](https://meta.discourse.org/t/broken-links-in-subfolder-installs/100355/7 "2018-10-24T19:22:33Z")

</div>

I’m actually not too terribly saddened by it anyway. I really do not have the time to manage the lower level of the community as it is.

---

<div class="post-metadata">

### Author: ![orenwolf](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/orenwolf/32/119529_2.png) [@orenwolf](https://meta.discourse.org/u/orenwolf)
#### Post date: [30 أكتوبر 2018، 4:54م UTC](https://meta.discourse.org/t/broken-links-in-subfolder-installs/100355/9 "2018-10-30T16:54:45Z")

</div>

Using v2.2.0.beta3 +166, Subfolder install.

Receiving these errors in the admin:

> POP3 authentication failed. Please verify your pop3 credentials.  
> Email polling has generated 162 errors in the past 24 hours. Look at [the logs](https://example.com/logs) for more details.  
> Connection to the POP3 server is failing with an authentication error. Please check your [POP3 settings](https://example.com/admin/site_settings/category/email).

(Corrected) POP3 error aside, there are two links in the message, one to “the logs”, one to “POP3 settings”, both of which omit the subfolder.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [9 نوفمبر 2018، 12:04ص UTC](https://meta.discourse.org/t/broken-links-in-subfolder-installs/100355/11 "2018-11-09T00:04:37Z")

</div>

Most of the relative links reported in this topic where already fixed in September. Today, I fixed the rest of them and added specs to prevent us from adding broken links in the future.

And, because I really like our translators, I made sure that the new interpolation keys were added to all existing translations – even on Transifex. 🙂

[https://github.com/discourse/discourse/pull/6574](https://github.com/discourse/discourse/pull/6574)

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [10 نوفمبر 2018، 12:04ص UTC](https://meta.discourse.org/t/broken-links-in-subfolder-installs/100355/12 "2018-11-10T00:04:41Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
