We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27acbdf commit a51a31bCopy full SHA for a51a31b
lib/default-theme/Layout.vue
@@ -150,9 +150,9 @@ export default {
150
(scrollTop >= anchor.parentElement.offsetTop + 10 &&
151
(!nextAnchor || scrollTop < nextAnchor.parentElement.offsetTop - 10))
152
153
- if (isActive && this.$route.hash !== anchor.hash) {
+ if (isActive && decodeURIComponent(this.$route.hash) !== decodeURIComponent(anchor.hash)) {
154
store.disableScrollBehavior = true
155
- this.$router.replace(anchor.hash, () => {
+ this.$router.replace(decodeURIComponent(anchor.hash), () => {
156
// execute after scrollBehavior handler.
157
this.$nextTick(() => {
158
store.disableScrollBehavior = false
0 commit comments