-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Description
What version of Hugo are you using (hugo version)?
$ hugo version hugo v0.148.2-40c3d8233d4b123eff74725e5766fc6272f0a84d+extended windows/amd64 BuildDate=2025-07-27T12:43:24Z VendorInfo=gohugoio
Does this issue reproduce with the latest release?
Yes
Description
With the recursion prevention in #13631, valid recursive partials now fail. This is a simple repro: https://github.com/n1xx1/repro-hugo-infinite-recursion
If the partialCached here (https://github.com/n1xx1/repro-hugo-infinite-recursion/blob/main/layouts/_shortcodes/include.html#L3) is replaced with partial, it works just fine.
Maybe adding the key to the check if it's a circular call could prevent the issue while keeping the detection.
McShelby