Commit 4dce7a3d by Johannes Zellner

Decode the path from the location hash first

1 parent 996e13b3
Showing with 3 additions and 3 deletions
......@@ -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)));
});
})();
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!