1. Pull up something with a wildcard tag which matches lots of tags. I ran into this while using the django~ tag.
  2. Change the sort order to featured (or any of the links below Ask Question). For django~, you end up at a URL like this.
    • The response headers indicate a 404 response, even though the page is blank.
    • The URL is 2,262 characters long, which the browser and/or server doesn't handle well.

      Microsoft has documented their maximum URL length in IE at 2,083 characters. I don't know if other browsers have different limitations, but Firefox and Safari both receive 404 errors.
    • If you do this on wildcard tags which match much fewer tags, such as this one (for python~), everything works as expected.


The first thing that came to my mind was to reuse the tagname being passed in. When constructing links, use a sanitized version of the original tagname string. The current functionality appears to construct the URL using the tags which resulted from the search. Using the original tagname string would result in a URL like this one (shown below), when clicking on featured under django~.


  • +1 for explicit steps to reproduce.
    – Pollyanna
    Jan 29, 2010 at 20:28

2 Answers 2


I now limit the number of tags that can come back from a wildcard explode operation, so this is fixed.

Update: Links are now generated with the wildcard intact, for example:


  • 1
    What is the limit (so I can add it to the FAQ entry, which I just modified)?
    – Jon Seigel
    Apr 27, 2010 at 13:32
  • Doesn't that mean that a result I'm really interested in can go missing because its tag got lobbed off?
    – Jack M.
    Apr 28, 2010 at 17:09

I think someone should instead combine django tags so the list isn't so long, or the system should recognize when its wildcard matches result in too long a query string and disallow such broad wildcard matches.

  • I have to agree, the list of tags matched by django~ is quite excessive, but I think the issue is easily solved without resorting to disallowing a search. Also, look at this from the vantage point of Stack Exchange, where a client may have a search resulting in only 20 tags, but each one is 100 characters long (as excessive as this may be).
    – Jack M.
    Jan 29, 2010 at 20:43

You must log in to answer this question.

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