Skip to content

Commit

Permalink
Fix double escaping of & in Atom feed "self" URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
cwalther committed Mar 5, 2021
1 parent 0a0dafd commit 1bc36d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/atom1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default (ins: Feed) => {
}

// link (rel="self")
const atomLink = sanitize(options.feed || (options.feedLinks && options.feedLinks.atom));
const atomLink = options.feed || (options.feedLinks && options.feedLinks.atom);

if (atomLink) {
base.feed.link.push({ _attributes: { rel: "self", href: sanitize(atomLink) } });
Expand Down

0 comments on commit 1bc36d0

Please sign in to comment.