skip to Main Content

Removing hash from URL on HTTP redirect

I just added a feature on a website to allow users to log in with Facebook. As part of the authentication workflow Facebook forwards the user to a callback URL on my site such as below. https://127.0.0.1?facebook-login-callback?code.....#_=_ Note the trailing…

VIEW QUESTION

How to check if a context request path starts with a given string from a list of strings? – Asp.net

I have multiple if statements here which would check if a request path starts with a given string and return true if the condition is met if (context.Request.Path.StartsWithSegments("/abc/def", StringComparison.OrdinalIgnoreCase)) { return true; } if (context.Request.Path.StartsWithSegments("/pqr/xyz", StringComparison.OrdinalIgnoreCase)) { return true; }…

VIEW QUESTION
Back To Top
Search