diff options
author | Izzy Galvez <i@igalvez.net> | 2015-10-26 18:02:03 +0300 |
---|---|---|
committer | Izzy Galvez <i@igalvez.net> | 2015-10-26 18:02:03 +0300 |
commit | ad5d091292c4661709a2e79f466df39dad1d02c7 (patch) | |
tree | ef50e2eb3b8d237fc9f7af97724f0bd5f4f3c32c | |
parent | 376a7e1f95c67258d289d983ea1beed533717fe7 (diff) |
decodeURI to show folder path in clean format
-rw-r--r-- | .autoindex/breadcrumbs.js | 2 | ||||
-rw-r--r-- | .autoindex/script.js | 2 |
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 |