# التعامل مع روابط URL الخارجية في محتوى الموضوع لتثبيت في مجلد فرعي

**URL:** https://meta.discourse.org/t/handle-external-urls-in-topic-body-for-subfolder-installation/75330
**Category:** Support
**Created:** [4 ديسمبر 2017، 9:40ص UTC](https://meta.discourse.org/t/handle-external-urls-in-topic-body-for-subfolder-installation/75330 "2017-12-04T09:40:56Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Ivan\_Rapekas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ivan_rapekas/32/248924_2.png) [@Ivan\_Rapekas](https://meta.discourse.org/u/Ivan_Rapekas)
#### Post date: [5 ديسمبر 2017، 7:48ص UTC](https://meta.discourse.org/t/handle-external-urls-in-topic-body-for-subfolder-installation/75330/5 "2017-12-05T07:48:59Z")

</div>

Thank you, guys, but I assume this is a bug. The forum _installed in a subfolder_ should not change any urls typed manually. I hope this information will help to detect a problem and fix it.

Here it is an example:

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/c/bc8321f543f597f5ea726dd2277c2ba032351ea0.png)

You may see, that the link points to the path **out of the forum** , let’s say ‘external url’ (for mind, my forum is located at `https://www.cuba-platform.com/discuss`).

The poster expects that anybody can follow the link later, as he(she) see on the screen - `https://www.cuba-platform.com/store`.

But actually forum redirects to another address `https://www.cuba-platform.com/discuss/store` which does not exist. This is because the forum has been installed in subfolder `/discuss`. I am sure that forum settings are correct 😉. For that reason nobody knows how many cases with external links exist, and how many permanent rules should be predefined in the forum settings. The same problem is to have a plugin/php-script to handle such links.

As I remember, almost all external links posted by users were redirected to inexistent forum addresses, though those links were not located in forum. Users even cannot share a link to download page `https://www.cuba-platform.com/download`

I already have reported the same [subfolder issues](https://meta.discourse.org/t/admin-link-in-subfolder-mode-is-incorrect/72920/11). Let me post it again, because here is a right place for them, I think. I filled some settings fields with custom values (terms of use, privacy policy etc) and tried to access them:

1. Go to `https://www.cuba-platform.com/discuss/guidelines`
2. Left click `https://www.cuba-platform.com/terms-of-use` - redirects to wrong location.
3. Go back to guidelines.
4. Left click `https://www.cuba-platform.com/privacy-policy` - redirects to wrong location.
5. Return to guidelines.
6. Left click `https://www.cuba-platform.com/faq` - redirects to correct location.
7. Open browser console and click Back button (go back). It will show unstoppable redirect.

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/5/454c4d66f2331f47358124733147b6334e246df2.png)

P.S. Currently I found that if I **middle click** the link (aka open the link in the new tab, Firefox) it opens the correct url! 🙂

---

_[View the full topic](https://meta.discourse.org/t/handle-external-urls-in-topic-body-for-subfolder-installation/75330)._
