aboutsummaryrefslogtreecommitdiff
path: root/apps/web/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/server')
-rw-r--r--apps/web/src/server/helpers.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/web/src/server/helpers.ts b/apps/web/src/server/helpers.ts
index a20474b2..c7455a60 100644
--- a/apps/web/src/server/helpers.ts
+++ b/apps/web/src/server/helpers.ts
@@ -19,6 +19,8 @@ export async function getMetaData(url: string) {
let favicon = _favicon.trim().length > 0 ? _favicon.trim() : 'https://supermemory.dhr.wtf/web.svg'
if (favicon.startsWith("/")) {
favicon = baseUrl + favicon
+ } else if (favicon.startsWith("./")) {
+ favicon = baseUrl + favicon.slice(1)
}
// Prepare the metadata object