Everything in the location-part
URL following #
refers to the anchor on the page, usually <a name="">
or <whatever id="">
. Some websites use them (possibly with client-side Javascript) to do the magic, but since you ask about it, I feel this is not the case. So, there is no real rhyme or reason why the existence or absence of these characters alone will cause the redirection to work or not. In fact, they are not even sent to the server in an HTTP request (at least Firefox does not work).
Have you looked at the exchange of HTTP requests when this happens? Something like Live HTTP Headers, HttpFox or Firebug (look at the Net panel) will help you with this and may tell you where the erroneous #_=_
comes from.
source share