Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public static string RemoveExplicitLogonFromUrlAbsoluteUri(string absoluteUri, string explicitLogonAddress) {
ArgumentValidator.ThrowIfNull("absoluteUri", absoluteUri);
ArgumentValidator.ThrowIfNull("explicitLogonAddress", explicitLogonAddress);
string text = "/" + explicitLogonAddress;
int num = absoluteUri.IndexOf(text);
if (num != -1) {
return absoluteUri.Substring(0, num) + absoluteUri.Substring(num + text.Length);
return absoluteUri;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment