ref: b1f2b433bc4ec520df81c04493e8e1634293c8e7
parent: ff28120e53c7d3d5fce9941082f72eb89adb43b7
author: John McFarlane <[email protected]>
date: Sun Dec 6 16:34:09 EST 2015
Fix /.xml RSSLink when uglyurls are enabled Prior to this commit the root url with uglyurls enabled is "/.xml". This commit relates to #175.
--- a/helpers/url.go
+++ b/helpers/url.go
@@ -269,6 +269,10 @@
}
return in
}
+ // /.xml -> /index.xml
+ if name == "" {
+ return path.Dir(in) + "index" + ext
+ }
// /section/name.html -> /section/name.html
return path.Clean(in)
}