Skip to content

feat(atom): use id for entry link if it is an http URL#4387

Open
kellegous wants to merge 1 commit into
miniflux:mainfrom
kellegous:id-url-fallback
Open

feat(atom): use id for entry link if it is an http URL#4387
kellegous wants to merge 1 commit into
miniflux:mainfrom
kellegous:id-url-fallback

Conversation

@kellegous

Copy link
Copy Markdown
Contributor

Have you followed these guidelines?

It is valid for an atom 1.0 feed to include no links in the entries. For instance, https://sinclairtarget.com/feed.xml passes validation. miniflux currently currently parses empty urls for every entry in that feed. However, the <id> element for atom is specified as an IRI ... which might be a URL. This change attempts to use the id value as the entry URL. If that doesn't work, it uses the site URL, just to ensure the entry has a url.

There is nothing in the atom spec that recommends using the id if there is no link. It is just intended as a globally unique identifier. Practically, though, the permalink is valid and widely used as the id. Just to double check myself, I looked at what a couple of other readers do.

  • FreshRSS uses the id as the URL unconditionally, even if it's not an http-based URL
  • Tiny Tiny RSS uses the site URL if there is no link on the entry.

https://sinclairtarget.com/feed.xml is a good example to test against.

dsh2dsh added a commit to dsh2dsh/miniflux that referenced this pull request Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant