What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 128 Stack Exchange communities.

I found a minor bug in StackOverflow. If you are not logged into Stack Overflow and are viewing tagged questions, the url is as follows: /questions/tagged/c%23

When you then login into StackOverflow, and are redirected to the url previously visited, the url now is: /questions/tagged/c#

The questions you now are looking at are ones tagged with and not .
I guess this is because when you are redirected it treats %23 as # instead of using the actual %23 characters.

share|improve this question
    
This is the correct place for placing bugs. –  George Duckett Feb 25 '13 at 8:45
    
@GeorgeDuckett Ok thanks (: –  Rhexis Feb 25 '13 at 10:12

2 Answers 2

up vote 8 down vote accepted

I've done a little bit of research on it:

When you click [login] you're redirected here:

http://stackoverflow.com/users/login?returnurl=%2fquestions%2ftagged%2fc%23

That should actually be:

http://stackoverflow.com/users/login?returnurl=%2fquestions%2ftagged%2fc%2523

In other words, the %23 is not encoded again when used in the redirect location.

share|improve this answer

Yes, you are right: it is. The problem is that IIS and ASP.NET (in combination) make a bit of a mess of URLs if they are slightly non-trivial. There are even some pathological edge-cases where two very different urls inbound come back with the same .Url if you look at it inside ASP.NET; go figure. For example, /x%3Fa%3Db vs /x?a=b. Even though it gets routed correctly, both of these end up with the url saying /x?a=b.

It has annoyed me a few times, too, when browsing the tag only to end up back on .

The good news is: I've found some tricks that allow me to do this properly - will be deployed next build. It definitely needed fixing - it was bad enough for , but for anything international it was positively bejiggered. Thanks for giving me a nudge to fix it.

share|improve this answer
    
Can you share those tricks? –  CodesInChaos Feb 27 '13 at 16:21
    
@CodesInChaos sure, there's nothing inherently company-specific or similar in there; how's this: stackoverflow.com/questions/15117342/… –  Marc Gravell Feb 27 '13 at 16:23
    
No worries mate :D best of luck! –  Rhexis Feb 28 '13 at 13:20
    
Looks like it has returned? –  Shadow Wizard Oct 26 '13 at 17:35

You must log in to answer this question.

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