File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
web-app/src/screens/Console
Buckets/ListBuckets/Objects/ListObjects Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ const InspectObject = ({
6666 const file = encodeURLString ( inspectPath + "/xl.meta" ) ;
6767 const volume = encodeURLString ( volumeName ) ;
6868
69- const urlOfInspectApi = `/api/v1/admin/inspect?volume=${ volume } &file=${ file } &encrypt=${ isEncrypt } ` ;
69+ let basename = document . baseURI . replace ( window . location . origin , "" ) ;
70+ const urlOfInspectApi = `${ basename } /api/v1/admin/inspect?volume=${ volume } &file=${ file } &encrypt=${ isEncrypt } ` ;
7071
7172 makeRequest ( urlOfInspectApi )
7273 . then ( async ( res ) => {
Original file line number Diff line number Diff line change @@ -146,7 +146,8 @@ const Inspect = () => {
146146 const file = encodeURLString ( inspectPath ) ;
147147 const volume = encodeURLString ( volumeName ) ;
148148
149- const urlOfInspectApi = `/api/v1/admin/inspect?volume=${ volume } &file=${ file } &encrypt=${ isEncrypt } ` ;
149+ let basename = document . baseURI . replace ( window . location . origin , "" ) ;
150+ const urlOfInspectApi = `${ basename } /api/v1/admin/inspect?volume=${ volume } &file=${ file } &encrypt=${ isEncrypt } ` ;
150151
151152 makeRequest ( urlOfInspectApi )
152153 . then ( async ( res ) => {
You can’t perform that action at this time.
0 commit comments