From 4dce7a3d2e99f489245bc8b4c6611061b78aa8cf Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Mon, 8 Oct 2018 16:36:00 +0200 Subject: Decode the path from the location hash first --- frontend/js/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/js/app.js b/frontend/js/app.js index 0a6ada1..7a80ba7 100644 --- a/frontend/js/app.js +++ b/frontend/js/app.js @@ -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))); }); })(); -- cgit v1.2.3