chore: update resource link template (#1537)

This commit is contained in:
boojack
2023-04-16 10:31:03 +08:00
committed by GitHub
parent 5cb436174d
commit 3060dafb45
2 changed files with 52 additions and 1 deletions

View File

@ -3,5 +3,5 @@ export const getResourceUrl = (resource: Resource, withOrigin = true) => {
return resource.externalLink;
}
return `${withOrigin ? window.location.origin : ""}/o/r/${resource.id}/${resource.publicId}`;
return `${withOrigin ? window.location.origin : ""}/o/r/${resource.id}/${resource.publicId}/${resource.filename}`;
};