Do you want to strip the trailing hash route too?
Ie. above querystring for `http://foo.com?bar#baz` would be `?bar#baz`