Skip to content

Post links in Atom feed broken in XSLT preview #11060

@StefanWallin

Description

@StefanWallin

Have you read the Contributing Guidelines on issues?

Prerequisites

Description

When browsing https://docusaurus.io/blog/atom.xml in a browser, and you might want to read the full post of one of the entries, the natural thing is to click the heading to go to the post since it is a link.

However, the atom.xsl looks for an xml-tag <link rel="alternate" href="..." />, but it does not exist. In contrast, feed.xsl looks for an xml-tag <link href="..." /> which works.

My question
I can submit a PR to remove the qualifier expecting the alternate rel. However I'm wondering if this was simply a mistake in #9252 when it was introduced or if there is a feature within docosaurus that could produce two links per blog post and then have some sort of preference of which of the links to pick(which can easily be done with an xsl:choose-tag.

Reproducible demo

view-source:https://docusaurus.io/blog/atom.xml

Steps to reproduce

  1. Open view-source:https://docusaurus.io/blog/atom.xml and note that the entry has a link-child, but not link[rel=alternate]-child.
  2. Open https://docusaurus.io/blog/atom.xml, click the heading of any post.
  3. Your browser now renavigates to the same page you are already on.

Expected behavior

I expected to end up on the entrys blog post.

Actual behavior

I remained (re-navigated to) the atom feed XSLT-processed webpage.

Your environment

  • docosaurus.io as of 2025-04-04
  • <meta name=generator content="Docusaurus v3.7.0">

Self-service

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its execution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions