diff --git a/web/src/api/utils.ts b/web/src/api/utils.ts index f2f8f50cc50e5..179b328f56bcb 100644 --- a/web/src/api/utils.ts +++ b/web/src/api/utils.ts @@ -20,7 +20,8 @@ export const copyToClipboard = async (secret: string) => { }; export const makeSharedLinkUrl = (externalDomain: string, key: string) => { - return `${externalDomain || window.location.origin}/share/${key}`; + const url = externalDomain || window.location.origin; + return `${url + url.endsWith('/') ? '' : '/'}share/${key}`; }; export const oauth = {