Wrong route after selecting a Category and a tag using the drop downs on a subfolder setup

Using a subfolder setup, when the user selects a tag after a category or a category after a tag, Discourse is using the route
/[subfolder]/tags/[subfolder]/c/[category slug]/[category id]/[tag]
instead of
/[subfolder]/tags/c/[category slug]/[category id]/[tag]

Both tag-drop.js and category-drop.js are calling getCategoryAndTagUrl, it uses category.js#url – which prepends the subfolder by calling get-url.js#getURL – to concatenate after /tags/. tag-drop-link.js also uses the same url method.

2 Likes

@vinothkannans can you investigate this issue?

2 Likes

https://github.com/discourse/discourse/commit/0581c033d7166ab9fe18cf25f55495f4f6182fd5

This commit should fix the issue for you. Thanks for your bug report and detailed explanation.

5 Likes