]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/commitdiff
Decode the path from the location hash first
authorJohannes Zellner <johannes@cloudron.io>
Mon, 8 Oct 2018 14:36:00 +0000 (16:36 +0200)
committerJohannes Zellner <johannes@cloudron.io>
Mon, 8 Oct 2018 14:36:00 +0000 (16:36 +0200)
frontend/js/app.js

index 0a6ada16c788cae357568b8625cea425993f99ff..7a80ba72d1849666da61d5038be3fc0fe947f565 100644 (file)
@@ -288,7 +288,7 @@ var app = new Vue({
                 getProfile(result.body.accessToken, function (error) {
                     if (error) return console.error(error);
 
-                    loadDirectory(window.location.hash.slice(1));
+                    loadDirectory(decode(window.location.hash.slice(1)));
                 });
             });
         },
@@ -428,11 +428,11 @@ var app = new Vue({
 getProfile(localStorage.accessToken, function (error) {
     if (error) return console.error(error);
 
-    loadDirectory(window.location.hash.slice(1));
+    loadDirectory(decode(window.location.hash.slice(1)));
 });
 
 $(window).on('hashchange', function () {
-    loadDirectory(window.location.hash.slice(1));
+    loadDirectory(decode(window.location.hash.slice(1)));
 });
 
 })();