0

I am using Response.Redirect in my ASP.NEt to redirect to the same page but with a different query string. However, when the page redirects, for some reasons unknown, this hash #_=_ is being added to the page.

Here's the redirect code in C#:

Response.Redirect("~/signup/?type=facebookregistration");
 return;

What causes this?

Liron Harel
  • 10,819
  • 26
  • 118
  • 217

1 Answers1

1

Authenticating with Facebook includes an optional url fragment...redirect_uri, when this fragment is left blank, then the empty fragment #_=_ is appended. They actually mention it in this post

https://developers.facebook.com/blog/post/552/

If this affects the behaviour of your application you can easily remove using javascript

Leo
  • 14,625
  • 2
  • 37
  • 55
  • First of all thanks for finding it. I put a data in the redirect_uri when I call the faceobok api. I don't understand why calling a redirection and reloading the page makes it appear. Maybe I just don't understand what Session redirect is :) – Liron Harel Jul 14 '16 at 04:02