diff --git a/web/pages/notifications.tsx b/web/pages/notifications.tsx index 3ac7e714..cd5a7192 100644 --- a/web/pages/notifications.tsx +++ b/web/pages/notifications.tsx @@ -1220,10 +1220,9 @@ function getSourceUrl(notification: Notification) { sourceType )}` else if (sourceSlug) - return `${sourceSlug}#${getSourceIdForLinkComponent( - sourceId ?? '', - sourceType - )}` + return `${ + sourceSlug.startsWith('/') ? sourceSlug : '/' + sourceSlug + }#${getSourceIdForLinkComponent(sourceId ?? '', sourceType)}` } function getSourceIdForLinkComponent(