[已解决] 用户和群组提及中的错误/硬编码 URL(子目录安装)

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


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



All other URLs seem to work correctly, for example:

3 个赞

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

5 个赞

We should fix this @pmusaraj

3 个赞

This should do it: FIX: user and group mentions in subfolder installs · discourse/discourse@421d47d · GitHub

7 个赞

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

6 个赞

Thanks a lot for the quick fix!

I believe that it is:

./launcher enter app
rake posts:rebake

to rebuild all posts?

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
image

2 个赞

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.

3 个赞

I confirm the that the issue has been fixed.

5 个赞

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