Concerning https://github.com/sinatra/sinatra/issues/596, which i wrongly diagnosed as a sinatra bug.
I'm having the following issue: I'm using Soundcloud OAuth workflow to implement single-sign-on in a project of mine. For that I'm using the "soundcloud" gem. So, after being redirected to soundcloud's sign-in/authorization form and pressing "Connect", I'm redirected back to the URL from my app I have specified as the redirect url... but some hash parameters come behind! So, let's say, instead of being redirected to "http://myapp.com/connect?code=123", I am instead being redirected to "http://myapp.com/connect?code=123#access_token=qwerty". Since hash parameters are not part of the HTTP protocol, it does have secondary effects on the server, but on the client, the bleepin hash params just do not go away! Basically, on my redirect endpoint, I'm fetching the code given by soundcloud, pinging Soundcloud's token exchange for a fresh access token, storing it and redirecting to my homepage, '/'. But the browsers do not clean the hash parameters on redirects, so that means I'm being redirected to "http://myapp.com/#access_token=qwerty". And that just sucks. Is there a workaround to this issue or is this a soundcloud "bug"? (Not exactly a bug because it doesn't break a thing, it is just plain ugly to have those hash params there).