aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@cloudron.io>2018-10-08 16:36:00 +0200
committerJohannes Zellner <johannes@cloudron.io>2018-10-08 16:36:00 +0200
commit4dce7a3d2e99f489245bc8b4c6611061b78aa8cf (patch)
treeb6f8db8111beb8161bc59a07c79a422096de3cce /frontend
parent996e13b351ddcc106e4700adc6257d0815e2cd23 (diff)
downloadSurfer-4dce7a3d2e99f489245bc8b4c6611061b78aa8cf.tar.gz
Surfer-4dce7a3d2e99f489245bc8b4c6611061b78aa8cf.tar.zst
Surfer-4dce7a3d2e99f489245bc8b4c6611061b78aa8cf.zip
Decode the path from the location hash first
Diffstat (limited to 'frontend')
-rw-r--r--frontend/js/app.js6
1 files 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({
288 getProfile(result.body.accessToken, function (error) { 288 getProfile(result.body.accessToken, function (error) {
289 if (error) return console.error(error); 289 if (error) return console.error(error);
290 290
291 loadDirectory(window.location.hash.slice(1)); 291 loadDirectory(decode(window.location.hash.slice(1)));
292 }); 292 });
293 }); 293 });
294 }, 294 },
@@ -428,11 +428,11 @@ var app = new Vue({
428getProfile(localStorage.accessToken, function (error) { 428getProfile(localStorage.accessToken, function (error) {
429 if (error) return console.error(error); 429 if (error) return console.error(error);
430 430
431 loadDirectory(window.location.hash.slice(1)); 431 loadDirectory(decode(window.location.hash.slice(1)));
432}); 432});
433 433
434$(window).on('hashchange', function () { 434$(window).on('hashchange', function () {
435 loadDirectory(window.location.hash.slice(1)); 435 loadDirectory(decode(window.location.hash.slice(1)));
436}); 436});
437 437
438})(); 438})();