File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
apps/renterd/contexts/filesManager Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' renterd ' : patch
3
+ ---
4
+
5
+ The copyable file download URLs in the file context menu have been updated to match the new API.
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
11
11
getKeyFromPath ,
12
12
} from '../../lib/paths'
13
13
import { ObjectData } from './types'
14
+ import { workerObjectKeyRoute } from '@siafoundation/renterd-types'
14
15
15
16
type DownloadProgress = ObjectData & {
16
17
controller : AbortController
@@ -167,7 +168,10 @@ export function useDownloads() {
167
168
const getFileUrl = useCallback (
168
169
( path : FullPath , authenticated : boolean ) => {
169
170
const { bucket, key } = bucketAndKeyParamsFromPath ( path )
170
- const workerPath = `/worker/objects/${ key } ?bucket=${ bucket } `
171
+ const workerPath = `${ workerObjectKeyRoute . replace (
172
+ ':key' ,
173
+ key
174
+ ) } ?bucket=${ bucket } `
171
175
// Parse settings.api if its set otherwise URL
172
176
const origin = settings . api || location . origin
173
177
const scheme = origin . startsWith ( 'https' ) ? 'https' : 'http'
You can’t perform that action at this time.
0 commit comments