fix(web): back button from person detail page ()

* feat: return button to the main page

* add album route

* feat: do not use explicit routes
This commit is contained in:
martin 2023-11-14 23:55:03 +01:00 committed by GitHub
parent ecbe7beb6c
commit 6214d510d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 2 deletions
web/src/lib/utils

View file

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