diff --git a/helpers/url.go b/helpers/url.go index afdf7490e..94c66139d 100644 --- a/helpers/url.go +++ b/helpers/url.go @@ -84,6 +84,9 @@ func UrlPrep(ugly bool, in string) string { return x } else { x := PrettifyUrl(SanitizeUrl(in)) + if path.Ext(x) == ".xml" { + return x + } url, err := purell.NormalizeURLString(x, purell.FlagAddTrailingSlash) if err != nil { return in