Przeglądaj źródła

fix: add missing decodeURIComponent while page load (#4244)

Mostafa 3 lat temu
rodzic
commit
9f19543488
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      client/themes/default/components/page.vue

+ 2 - 2
client/themes/default/components/page.vue

@@ -564,11 +564,11 @@ export default {
     if (window.location.hash && window.location.hash.length > 1) {
       if (document.readyState === 'complete') {
         this.$nextTick(() => {
-          this.$vuetify.goTo(window.location.hash, this.scrollOpts)
+          this.$vuetify.goTo(decodeURIComponent(window.location.hash), this.scrollOpts)
         })
       } else {
         window.addEventListener('load', () => {
-          this.$vuetify.goTo(window.location.hash, this.scrollOpts)
+          this.$vuetify.goTo(decodeURIComponent(window.location.hash), this.scrollOpts)
         })
       }
     }