From d064139cee17959f02fadce3cae97e2238abcb15 Mon Sep 17 00:00:00 2001 From: Jian Zhou Date: Wed, 8 Oct 2014 16:02:53 -0400 Subject: [PATCH] Fix spf13/hugo#467. RSSLink now point to index.xml --- helpers/url.go | 3 +++ 1 file changed, 3 insertions(+) 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