mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00:00
fix(web): broken asset urls if shared link has photos in name (#24451)
This commit is contained in:
parent
7efce389b2
commit
f5667cefd4
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ export function currentUrlReplaceAssetId(assetId: string) {
|
||||||
// off / instead of a subpath, unlike every other asset-containing route.
|
// off / instead of a subpath, unlike every other asset-containing route.
|
||||||
return isPhotosRoute($page.route.id)
|
return isPhotosRoute($page.route.id)
|
||||||
? `${AppRoute.PHOTOS}/${assetId}${searchparams}`
|
? `${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) {
|
function replaceScrollTarget(url: string, searchParams?: AssetGridRouteSearchParams | null) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue