]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test: remove unnecessary decodeURI [skip ci]
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 26 Nov 2020 09:42:12 +0000 (10:42 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 26 Nov 2020 09:42:19 +0000 (10:42 +0100)
e2e/scroll-behavior/index.ts

index 61391e62423d6dd4715c7e085799b99d91cd6b1d..33bddbf77fc8b3b14c3f26e58b749db6d180b31e 100644 (file)
@@ -40,7 +40,7 @@ const scrollBehavior: RouterScrollBehavior = async function (
 
     // scroll to anchor by returning the selector
     if (to.hash) {
-      position = { el: decodeURI(to.hash), behavior }
+      position = { el: to.hash, behavior }
 
       // specify offset of the element
       if (to.hash === '#anchor2') {