web/satellite: ensure "s/" prefix in path for linksharing urls
currently we are generated some linksharing urls with and without the "s/" in the path. Make sure we're using "s/" for both cases to avoid a redirect with the backwards compatible style. Change-Id: If04a41325ebbece23d4e7f2c0431bd4905596bce
This commit is contained in:
parent
013ddbc57f
commit
1c0b23a8d0
@ -45,9 +45,9 @@ export function useLinksharing() {
|
||||
|
||||
const LINK_SHARING_AG_NAME = `${path}_shared-${type}_${new Date().toISOString()}`;
|
||||
const grant: AccessGrant = await agStore.createAccessGrant(LINK_SHARING_AG_NAME, selectedProject.value.id);
|
||||
const credentials: EdgeCredentials = await generateCredentials(grant.secret, path, null);
|
||||
const creds: EdgeCredentials = await generateCredentials(grant.secret, path, null);
|
||||
|
||||
return `${publicLinksharingURL.value}/${credentials.accessKeyId}/${encodeURIComponent(path.trim())}`;
|
||||
return `${publicLinksharingURL.value}/s/${creds.accessKeyId}/${encodeURIComponent(path.trim())}`;
|
||||
}
|
||||
|
||||
async function generateObjectPreviewAndMapURL(bucketName: string, path: string): Promise<string> {
|
||||
|
Loading…
Reference in New Issue
Block a user