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)
19 ديسمبر 2022، 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)
27 ديسمبر 2022، 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)
6 يناير 2023، 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.