Merge pull request #2139 from versity/ben/webui-space-encode

fix: decode URL hash in webui before parsing bucket/prefix
This commit is contained in:
Ben McClelland
2026-05-13 11:48:11 -07:00
committed by GitHub

View File

@@ -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];