We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebf6716 commit 475c685Copy full SHA for 475c685
templates/modern/src/toc.ts
@@ -48,6 +48,10 @@ export async function renderToc(): Promise<TocNode[]> {
48
const lastActiveElement = activeElements[activeElements.length - 1]
49
if (lastActiveElement) {
50
lastActiveElement.scrollIntoView({ block: 'nearest' })
51
+ /* eslint-disable no-self-assign */
52
+ if (location.hash) {
53
+ location.href = location.href
54
+ }
55
}
56
57
0 commit comments