Created
April 26, 2012 13:19
-
-
Save johnathan-sewell/2499497 to your computer and use it in GitHub Desktop.
EPiServer URL Rewrite Provider to make URLs lowercase
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LowercaseUrlRewriteProvider : FriendlyUrlRewriteProvider | |
{ | |
public override bool ConvertToExternal(UrlBuilder url, object internalObject, System.Text.Encoding toEncoding) | |
{ | |
base.ConvertToExternal(url, internalObject, toEncoding); | |
url.Path = url.Path.ToLower(); | |
return true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment