Skip to content

Commit

Permalink
fix: add missing decodeURIComponent while page load (#4244)
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa8026 authored Sep 11, 2021
1 parent 7e997aa commit 9f19543
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/themes/default/components/page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}
}
Expand Down

0 comments on commit 9f19543

Please sign in to comment.