Skip to content

[Bug]: The {{< article >}} shortcode doesn't handle mutual references #2791

@quasipedia

Description

@quasipedia

Issue Check

  • I have checked existing Issues and I feel this bug has not been raised

Hugo Version Check

  • My Hugo version is within the supported range

Describe the Bug

The site fails to build if two articles have mutually linking article shortcodes.

To Reproduce

  1. Create articles A and B
  2. In article A, create a shortcode to article B
  3. In article B, create a shortcode to article A
  4. Try to build the site (live preview)
  5. Hugo hangs and stop responding to requests

Expected Behaviour

The expected behaviour would be to have the shortcode working in both articles.
Intuitively, this should be possible given that the "article series" feature already support mutual links.

Screenshots

No response

Platform

  • OS: Fedora (GNU/Linux)
  • Browser: Firefox
  • Version: Latest for both

Hugo Version

hugo v0.152.2+extended linux/amd64 BuildDate=2025-12-14T00:00:00+00:00 VendorInfo=Fedora:0.152.2-1.fc43

Blowfish Version

**How do I get the version number!?**
It should however be v2.98.0 (I believe) as I updated it before trying to build the site via `blowfish-tools`.

Additional Context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions