User profile top categories: Wrong search links

AI-generated summary

The discussion is about a bug on Discourse where clicking on a category link from a user’s profile performs the search incorrectly. When a user clicks on a top category link on a profile, it should switch the search type to “Topics/Posts” but it stays on “Users”. jesus2099 provided steps to reproduce the bug on Android and asked others to test it out. sam confirmed it is a legitimate bug and welcomed pull requests to fix it.

  1. Click the magnifying glass, type Sam, select Users type of search, press Enter: https://meta.discourse.org/search?q=Sam&search_type=users
  2. Click on search result user @sam: https://meta.discourse.org/u/sam/summary
  3. Scroll down to TOP CATEGORIES, and click the Contribute > Feature Topics, for example: Currently 82

Now you will be sent back to the search form.
The search form will correctly change to @sam #contribute:feature but the search type will stay on Users instead of switching to Topics/Posts.

At least it’s what happens for me on Android 9 Kiwi Browser.

Please try with your browser, too.
I will try with my laptop, tomorrow.

3 Likes

Legit bug, going to put a pr-welcome on fixing this!

3 Likes