Steps to reproduce
Open any ticket assigned to any user
Click on assignee tag under the title (see screenshot)
)
Observe opened page
Expected:
Maybe popup with user profile should be opened as after clicking on assignee tag from the whisper
Actual:
404 error page is opened after clicking on assignee tag under the title
nat
(Natalie T)
2022 年 12 月 19 日午後 12:42
3
Can you share a bit more information on the link of the opened page? Is it leading you to the same topic?
Also, is this assignment a topic assignment or post assignment?
「いいね!」 1
This is probably topic assignment which leads to the same topic but URL changes in this case for example from “/discuss/t/test-bug-report/56570” to “/t/56570” after clicking on assignee tag.
nat
(Natalie T)
2022 年 12 月 27 日午前 5:59
5
Ah, can I confirm if you’re on a subfolder installation of Discourse?
「いいね!」 1
Sorry for the late response. Yes, you’re right.
「いいね!」 1
ted
(Ted Johansson)
2023 年 1 月 6 日午前 2:41
8
Thanks for the report, @AlexD10 !
The issue has been fixed in the discourse-assign
plugin. PR here .
discourse:main
← Drenmi:fix/assign-tags-url-for-subfolders
opened 06:18AM - 05 Jan 23 UTC
[Meta topic](https://meta.discourse.org/t/404-error-page-is-opened-after-clickin… g-on-assignee-tag-under-the-title/249333).
### What's the problem?
The tag links added to the topic header extras aren't aware of subfolder usage, e.g. the topic URL would be generated as a vanilla `/t/:id` URL. The same applies to post assignments.
### How does this fix it?
This change fixes that by passing the link URL through the [`getURL`](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse-common/addon/lib/get-url.js#L6) helper.
### What about tests?
I searched around for tests that simulate subfolders, but couldn't find any. If anyone know these exist and can point me to them, that'd be great.
「いいね!」 2
Thank you for the update and fixing this issue.
「いいね!」 1
This topic was automatically closed after 3 days. New replies are no longer allowed.