diff --git a/docs/configuration.md b/docs/configuration.md index e4cc24e02..f1fbce04a 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -917,7 +917,7 @@ If you have a link to the homepage in the sidebar and want it to be shown as act For more details, see [#1131](https://github.com/docsifyjs/docsify/issues/1131). -## themeColor ⚠️ +## themeColor ⚠️ :id=themecolor !> Deprecated as of v5. Use the `--theme-color` [theme property](themes#theme-properties) to [customize](themes#customization) your theme color. @@ -931,7 +931,7 @@ window.$docsify = { }; ``` -## topMargin ⚠️ +## topMargin ⚠️ :id=topmargin !> Deprecated as of v5. Use the `--scroll-padding-top` [theme property](themes#theme-properties) to specify a scroll margin when using a sticky navbar. diff --git a/src/core/router/history/hash.js b/src/core/router/history/hash.js index dcecf04dd..4285ea4c3 100644 --- a/src/core/router/history/hash.js +++ b/src/core/router/history/hash.js @@ -47,6 +47,15 @@ export class HashHistory extends History { if (el && el.tagName === 'A' && !isExternal(el.href)) { navigating = true; + + // Do not compare hash containing these classes. + if (['app-name-link', 'page-link'].includes(el.className)) { + return; + } + + if (el.hash === location.hash) { + cb({ event: e, source: 'navigate' }); + } } });