What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 127 Stack Exchange communities.
  1. go to users page on stackoverflow.com
  2. type in 'f*ck you' (using the obvious spelling)
  3. observe two users
  4. click on one
  5. hit the back button

You don't go back to the list.

I see something that this may be a dup of, but it is all concerned with multi-pagination, not with returning the the search list. However, I may have misunderstood.

share|improve this question
    
It's the same thing with Tag Search. I sense Jeff warming up the [status-bydesign] edit right now. –  Jon Seigel May 10 '10 at 2:22
1  
@Jeff, @Jon - shouldn't it at least be [status-declined], surely it wasn't a deliberate "design" to work like that? –  Alconja May 10 '10 at 4:58
2  
@Jeff it might be a design choice, but it's a lousy one. Usability fail all the way! –  alex May 10 '10 at 5:00
add comment

2 Answers

[status-bydesign]?? Come on @Jeff, ajax is no reason to break the back button...

Greasemonkey to the rescue:

(function() {
    function GM_wait() {
        if (typeof unsafeWindow.jQuery == 'undefined') { 
            window.setTimeout(GM_wait,100); 
        } else { 
            $ = unsafeWindow.jQuery; letsJQuery(); 
        }
    }
    GM_wait();
    function letsJQuery() {
        $(function() {
            var textbox = $("#userfilter, #tagfilter");
            var oldHash = "";
            if (textbox.length > 0) {
                textbox.unbind("keydown").typeWatch({ highlight: true, wait: 500, captureLength: -1, callback: almostFinished }); 
                setInterval(function() {
                    var hash = location.hash.substring(1);
                    if (oldHash != hash) {
                        textbox.val(hash);
                        oldHash = hash;
                        unsafeWindow.finished(hash);
                    }
                }, 200);
            }
            function almostFinished(txt) {
                location.hash = txt;
                oldHash = txt;
                unsafeWindow.finished(txt);
            }
        });
    }
})();

Apply to http://*stackoverflow.com/users* and http://*stackoverflow.com/tags* to get the back button working on tag/user searches (should also work on their SU/SF counter parts).

[status-completed] ;)

share|improve this answer
    
very nice :) thanks! –  Jeff Atwood May 10 '10 at 5:05
    
+1 I changed it a little so it also works as a chrome extension: pastebin.org/216251 –  balpha May 10 '10 at 5:09
1  
Ill have a think about this, I'm not sure I want to be changing a windows location so frequently, perhaps I'll reset it when you navigate out. –  waffles Jun 30 '10 at 2:55
add comment

Search results are done through ajax and results are writing html table into the page from javascript, so if you use back button, default page 1 will display.

share|improve this answer
add comment

You must log in to answer this question.

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