1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

fix(web): previous url in person page (#5071)

This commit is contained in:
martin 2023-11-16 00:14:18 +01:00 committed by GitHub
parent 343afea713
commit 956ca816bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,3 @@
export const isExternalUrl = (url: string): boolean => {
return new URL(url).origin !== location.origin;
return new URL(url, window.location.href).origin !== window.location.origin;
};