We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f257cb commit 5da8415Copy full SHA for 5da8415
web-app/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects/InspectObject.tsx
@@ -66,8 +66,10 @@ const InspectObject = ({
66
const file = encodeURLString(inspectPath + "/xl.meta");
67
const volume = encodeURLString(volumeName);
68
69
- let basename = document.baseURI.replace(window.location.origin, "");
70
- const urlOfInspectApi = `${window.location.origin}${basename}/api/v1/admin/inspect?volume=${volume}&file=${file}&encrypt=${isEncrypt}`;
+ const urlOfInspectApi = new URL(
+ `/api/v1/admin/inspect?volume=${volume}&file=${file}&encrypt=${isEncrypt}`,
71
+ document.baseURI,
72
+ ).href;
73
74
makeRequest(urlOfInspectApi)
75
.then(async (res) => {
0 commit comments