mirror of https://github.com/usememos/memos
fix: return external link directly (#1465)
* fix: return external link directly * chore: updatepull/1475/head
parent
5361f76b11
commit
6ff7cfddda
@ -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}`;
|
||||
};
|
||||
|
Loading…
Reference in New Issue