AlexD10
December 19, 2022, 9:17am
1
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)
December 19, 2022, 12:42pm
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 Like
AlexD10
December 20, 2022, 3:29pm
4
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)
December 27, 2022, 5:59am
5
Ah, can I confirm if youβre on a subfolder installation of Discourse?
1 Like
Sorry for the late response. Yes, youβre right.
1 Like
ted
(Ted Johansson)
January 6, 2023, 2:41am
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 Likes
Thank you for the update and fixing this issue.
1 Like
This topic was automatically closed after 3 days. New replies are no longer allowed.