RSSLink is wrong?

I’m pretty sure that something is going wrong in the rendering of RSS feed links on Hugo sites, and I think that it’s how the Purell library is being called, but ultimately there’s no differentiation between the types of permalinks that are being created when a site is being configured. My header partial includes the following lines:

  <link href="{{ .RSSlink }}" rel="alternate" type="application/atom+xml" title="{{ .Site.Title }}" />
  <link href="{{ .RSSlink }}" rel="feed" type="application/atom+xml" title="{{ .Site.Title }}" />

It gets rendered as:

  <link href="http://www.halostatue.ca/index.xml/" rel="alternate" type="application/atom+xml" title="halo • statue" />
  <link href="http://www.halostatue.ca/index.xml/" rel="feed" type="application/atom+xml" title="halo • statue" />

There’s an extra slash at the end of index.xml which should not be there. It looks like the code is more or less correct in helpers/url.go:55 at MakePermalink, but the string that is being provided is index.xml/, not index.xml. I’ve tried this with my local 0.13-dev version and a download of the 0.12 version.

It looks, based on about ~15 minutes of digging, that the parameters to purell are to always add a trailing slash, even if what’s being referred to either looks like or is a file. Ideas? (I may be able to look at this more in depth tomorrow, but I first noticed this because I was having problems subscribing to my own site in NewsBlur.)

Who subscribes to their own site? :slight_smile:

There was a bug that was supposed to be fixed related to this:

I’ll give that a try.
-a