mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
fix(web): handle trailing slash in external domain (#6253)
This commit is contained in:
parent
29b204de57
commit
8d0a619e81
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user