mirror of
https://github.com/immich-app/immich.git
synced 2025-12-12 07:41:02 -08:00
fix(web): broken asset urls with photos name
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user