mirror of
https://github.com/versity/versitygw.git
synced 2026-05-17 17:31:28 +00:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user