hexojs / hexo-generator-feed

Feed generator for Hexo.

Home Page:http://hexo.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need absolute URI for rel="self" link

nsamarak opened this issue · comments

Per the W3C guidelines (https://validator.w3.org/feed/docs/warning/RelativeSelf.html), rel="self" links need to be absolute URIs, not relative. Services such as Google News and Apple News require the rel="self" link to match the W3C guidelines in order for them to consume your blog content.

I'm on hexo-generator-feed 2.2.0 and the rel="self" link is relative, so I was going to submit a pull request. However, the latest code in github (see below) appears to generate an absolute URI. Is that correct?

const feed_url = full_url_for.call(this, path);

commented

I'm on hexo-generator-feed 2.2.0 and the rel="self" link is relative, so I was going to submit a pull request. However, the latest code in github (see below) appears to generate an absolute URI. Is that correct?

The latest version of hexo-generator-feed is 3.0.0. Try update first?