# \[解決済み\] ユーザーおよびグループのメンションにおける不正/ハードコードされたURL（サブフォルダインストール）

**URL:** https://meta.discourse.org/t/solved-incorrect-hardcoded-urls-in-users-and-groups-mentions-subfolder-installation/107862
**Category:** Bug
**Created:** [2019 年 1 月 29 日午後 9:23 UTC](https://meta.discourse.org/t/solved-incorrect-hardcoded-urls-in-users-and-groups-mentions-subfolder-installation/107862 "2019-01-29T21:23:02Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![rbrlortie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rbrlortie/32/166740_2.png) [@rbrlortie](https://meta.discourse.org/u/rbrlortie)
#### Post date: [2019 年 1 月 29 日午後 9:23 UTC](https://meta.discourse.org/t/solved-incorrect-hardcoded-urls-in-users-and-groups-mentions-subfolder-installation/107862/1 "2019-01-29T21:23:02Z")

</div>

Hi,

Since one of the latest updates, the URL on tags is no longer correct. Our development zone that is running on a previous version has the correct URLs.

See screenshots:

 ![image](https://global.discourse-cdn.com/meta/original/3X/a/9/a979818b781d0f9434c35a144d94f7b5295ff939.png)

* * *

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

Those URLs should be `/community/forum/u/klortie` and `/community/forum/groups/private-support`.

* * *

* * *

All other URLs seem to work correctly, for example:

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

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2019 年 1 月 29 日午後 9:32 UTC](https://meta.discourse.org/t/solved-incorrect-hardcoded-urls-in-users-and-groups-mentions-subfolder-installation/107862/2 "2019-01-29T21:32:48Z")

</div>

Can confirm this has regressed on my subfolder install. User and group links do not include the subfolder.

---

<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: [2019 年 1 月 29 日午後 9:54 UTC](https://meta.discourse.org/t/solved-incorrect-hardcoded-urls-in-users-and-groups-mentions-subfolder-installation/107862/3 "2019-01-29T21:54:27Z")

</div>

We should fix this @pmusaraj

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2019 年 1 月 30 日午前 3:30 UTC](https://meta.discourse.org/t/solved-incorrect-hardcoded-urls-in-users-and-groups-mentions-subfolder-installation/107862/5 "2019-01-30T03:30:55Z")

</div>

This should do it: [FIX: user and group mentions in subfolder installs · discourse/discourse@421d47d · GitHub](https://github.com/discourse/discourse/commit/421d47da1ed626913810baafe7ed3de7d9bf717b)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2019 年 1 月 30 日午前 4:07 UTC](https://meta.discourse.org/t/solved-incorrect-hardcoded-urls-in-users-and-groups-mentions-subfolder-installation/107862/6 "2019-01-30T04:07:11Z")

</div>

Confirmed fix is good. You’ll need to rebuild the html on any broken posts, but once done URLs work as expected.

---

<div class="post-metadata">

### Author: ![rbrlortie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rbrlortie/32/166740_2.png) [@rbrlortie](https://meta.discourse.org/u/rbrlortie)
#### Post date: [2019 年 1 月 30 日午後 3:09 UTC](https://meta.discourse.org/t/solved-incorrect-hardcoded-urls-in-users-and-groups-mentions-subfolder-installation/107862/7 "2019-01-30T15:09:52Z")

</div>

Thanks a lot for the quick fix!

I believe that it is:

```plaintext
./launcher enter app
rake posts:rebake

```

to rebuild all posts?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2019 年 1 月 30 日午後 3:20 UTC](https://meta.discourse.org/t/solved-incorrect-hardcoded-urls-in-users-and-groups-mentions-subfolder-installation/107862/8 "2019-01-30T15:20:29Z")

</div>

Yep, if this affected lots of posts, that’d be the way to go. If just a few, I’d do it by hand by clicking the “show more” button, then the “post admin actions” wrench, and finally “rebuild html”.

![image](https://global.discourse-cdn.com/meta/original/3X/5/0/50db78161f9cec84400470a18e6f99db8e56d86c.png)

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

---

<div class="post-metadata">

### Author: ![rbrlortie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rbrlortie/32/166740_2.png) [@rbrlortie](https://meta.discourse.org/u/rbrlortie)
#### Post date: [2019 年 1 月 30 日午後 3:43 UTC](https://meta.discourse.org/t/solved-incorrect-hardcoded-urls-in-users-and-groups-mentions-subfolder-installation/107862/9 "2019-01-30T15:43:40Z")

</div>

Thanks, that makes sense. We’ll fix the broken posts that created problems for some users that way and then let the `rake posts:rebake` command run in the background for everything else.

---

<div class="post-metadata">

### Author: ![rbrlortie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rbrlortie/32/166740_2.png) [@rbrlortie](https://meta.discourse.org/u/rbrlortie)
#### Post date: [2019 年 1 月 30 日午後 6:13 UTC](https://meta.discourse.org/t/solved-incorrect-hardcoded-urls-in-users-and-groups-mentions-subfolder-installation/107862/10 "2019-01-30T18:13:28Z")

</div>

I confirm the that the issue has been fixed.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2019 年 1 月 31 日午後 11:00 UTC](https://meta.discourse.org/t/solved-incorrect-hardcoded-urls-in-users-and-groups-mentions-subfolder-installation/107862/11 "2019-01-31T23:00:06Z")

</div>

This topic was automatically closed after 42 hours. New replies are no longer allowed.
