Table of contents in shortcode with Hugo 0.60+

Hi,
I have a very simple shortcode with the following template:

toc.html

{{ .Page.TableOfContents }}

Which I then include in articles with:

{{< toc >}}

Before Hugo 0.60, this was working fine. With Hugo 0.60/61 it seems that the {{ .Page.TableOfContents }} variable is completely empty when read from within the shortcode.

Is there a new way to print the table of contents in a shortcode, or is this a bug?

Thanks

This issue seems to be solved with Hugo 0.62, although I can’t find anything that could be linked to this in the changelog.

Thanks!