Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iglvzx/IGalvez.Autoindex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.autoindex/breadcrumbs.js2
-rw-r--r--.autoindex/script.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/.autoindex/breadcrumbs.js b/.autoindex/breadcrumbs.js
index 0d2b2e7..8b3dc57 100644
--- a/.autoindex/breadcrumbs.js
+++ b/.autoindex/breadcrumbs.js
@@ -1,4 +1,4 @@
-var parts = document.URL.split('/');
+var parts = decodeURI(document.URL).split('/');
parts.pop(); // remove last element
diff --git a/.autoindex/script.js b/.autoindex/script.js
index 2ff2510..9145dc5 100644
--- a/.autoindex/script.js
+++ b/.autoindex/script.js
@@ -1,4 +1,4 @@
-document.title = document.URL; // set page title to full URL
+document.title = decodeURI(document.URL); // set page title to full URL
$('table').addClass('table'); // add Bootstrap CSS to table