fix: return external link directly (#1465)
* fix: return external link directly * chore: update
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
export const getResourceUrl = (resource: Resource, withOrigin = true) => {
|
||||
if (resource.externalLink) {
|
||||
return resource.externalLink;
|
||||
}
|
||||
|
||||
return `${withOrigin ? window.location.origin : ""}/o/r/${resource.id}/${resource.publicId}`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user