High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(web): broken asset urls if shared link has photos in name (#24451)
Yarosf5667cefd4b4
diff --git a/web/src/lib/utils/navigation.ts b/web/src/lib/utils/navigation.tsindex c3fe051f12..daf1d04ed5 100644--- a/web/src/lib/utils/navigation.ts+++ b/web/src/lib/utils/navigation.ts@@ -47,7 +47,7 @@ export function currentUrlReplaceAssetId(assetId: string) {// off / instead of a subpath, unlike every other asset-containing route.return isPhotosRoute($page.route.id)? `${AppRoute.PHOTOS}/${assetId}${searchparams}`- : `${$page.url.pathname.replace(/(\/photos.*)$/, '')}/photos/${assetId}${searchparams}`;+ : `${$page.url.pathname.replace(/\/photos\/[^/]+$/, '')}/photos/${assetId}${searchparams}`;}function replaceScrollTarget(url: string, searchParams?: AssetGridRouteSearchParams | null) {