1
Vote

Try to get return url from query string

description

Return url in some provider (facebook, google, ...) is context.HttpContext.Request.Url. It's be better If the first attempt to get it from the query string.

Current behavior is bad for some situations. Example:
  1. Not authorized user wants to comment blog post (but he need authorize before).
  2. He see link to LogOn page. Click it.
  3. LogOn page exists some oAuth provider link and after authorization he was redirected to home page (first to logon page and after to home page).

comments