Skip to content

Commit 9274ee7

Browse files
authored
Fix URL of inspect object API (#3247)
1 parent 2b6c3de commit 9274ee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web-app/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects/InspectObject.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const InspectObject = ({
6767
const volume = encodeURLString(volumeName);
6868

6969
let basename = document.baseURI.replace(window.location.origin, "");
70-
const urlOfInspectApi = `${basename}/api/v1/admin/inspect?volume=${volume}&file=${file}&encrypt=${isEncrypt}`;
70+
const urlOfInspectApi = `${window.location.origin}${basename}/api/v1/admin/inspect?volume=${volume}&file=${file}&encrypt=${isEncrypt}`;
7171

7272
makeRequest(urlOfInspectApi)
7373
.then(async (res) => {

0 commit comments

Comments
 (0)