Skip to content

[pull] master from gohugoio:master#459

Merged
pull[bot] merged 2 commits intojynychen:masterfrom
gohugoio:master
Jan 11, 2026
Merged

[pull] master from gohugoio:master#459
pull[bot] merged 2 commits intojynychen:masterfrom
gohugoio:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Jan 11, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

jmooring and others added 2 commits January 11, 2026 15:17
When a new shortcode file was added during `hugo server`, the shortcode
was detected but not properly registered in the template cache. This caused
subsequent content edits using the shortcode to fail with "template for
shortcode not found" until the server was restarted.

The issue was that when a shortcode was added, only a glob identity for
dependent content was added to the changes list, but not the shortcode
file's own pathInfo. This meant RefreshFiles filtered it out and never
inserted it into the shortcodesByName cache.

The fix adds the shortcode file's pathInfo to changes (in addition to the
glob for dependent content), and corrects the glob pattern from
`shortcodes/...` to `/_shortcodes/...` to match the actual path format.

Fixes #14207
@pull pull bot locked and limited conversation to collaborators Jan 11, 2026
@pull pull bot added the ⤵️ pull label Jan 11, 2026
@pull pull bot merged commit 66ba63c into jynychen:master Jan 11, 2026
4 of 5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants