diff --git a/webui/web/explorer.html b/webui/web/explorer.html index 57235370..b541f708 100644 --- a/webui/web/explorer.html +++ b/webui/web/explorer.html @@ -1156,7 +1156,9 @@ under the License. async function init() { // Check URL hash for bucket/prefix - const hash = window.location.hash.slice(1); + // decodeURIComponent is needed because browsers percent-encode characters + // like spaces when storing the hash + const hash = decodeURIComponent(window.location.hash.slice(1)); if (hash) { const parts = hash.split('/'); const bucketName = parts[0];