Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

When I type nothing but tags in the search box, I'm redirected to the coresponding tag page.

Search Box       URL
css              /questions/tagged/css
css jquery       /questions/tagged/css+jquery

I would like to see it also work the other way around. When I visit a tag page I would like to see the search box populated with the corresponding tags.

URL                           Search Box
/questions/tagged/css         [css]            
/questions/tagged/css+jquery  [css] [jquery]        

It's a feature in the sense that when users visit a tag page, it would show them how to search within those tags.

It's a bug in sense that when users search with keywords that all happen to be tags, their input is not retained on the "search results" page.

share|improve this question
Related:… – Jon Seigel May 11 '10 at 2:00
up vote 8 down vote accepted

This will go out in the build tonight, on tag pages you'll see the [tag] or combination or tags in the search box for easy searching of that content. For example, this:

Will now have this in the searchbox: [jquery] -[javascript] [html]

A simpler example:

Will now have: [java]

This applies to /questions/tagged/ and /unanswered/tagged/ for the moment, if it makes sense elsewhere we'll look at adding it there too.

share|improve this answer

Adding the "[tag]" text to the search box when clicking on a tag or visiting the tag page would make it easier to refine the search with additional keywords. Right now the search box simply contains "search" and you have to retype the [tag] and keywords if you want to refine the search. This should work more like Gmail where clicking on a label adds "label:oqa" to the search box. This helps novice users learn how to search for labeled emails and makes it much easier to modify or refine the search.

The search box works as desired if you search for something like "[tag] keyword", but searching for only tags such as "[fun] [discussion]" redirects to the /questions/tagged/fun+tags url mentioned above.

I guess this could be a feature implemented via a custom userscript if someone wanted to implement it...

share|improve this answer

This should be a pretty low-hanging fruit. Here's a client-side solution.

var tags = location.pathname.split('/').pop().split('+');
var keywords = $.map(tags, function(t) { return '[' + t + ']' }).join(' '); 
share|improve this answer
+1. Even though I don't like the idea, I love answers that provide the solution in code :-) – The Unhandled Exception May 17 '10 at 21:23

Seeing how this was upvoted at least 8 times I'll probably get downvoted to hell for saying so but I think that Autocomple tags in the search box is a much better solution to showing users how to search for tags. It's also a benefit to long time users who can't remember the proper tag, for example, does the tag have a hyphen or not.

share|improve this answer
Why can't we have both? – gitignore May 18 '10 at 0:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .