ci: browser compatibility linting (#19132)

This commit is contained in:
Zack Pollard 2025-06-13 15:54:59 +01:00 committed by GitHub
parent de756d9497
commit e2dfbd66c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 140 additions and 2 deletions

View file

@ -40,7 +40,8 @@ export function currentUrlReplaceAssetId(assetId: string) {
const params = new URLSearchParams($page.url.search);
// always remove the assetGridScrollTargetParams
params.delete('at');
const searchparams = params.size > 0 ? '?' + params.toString() : '';
const paramsString = params.toString();
const searchparams = paramsString == '' ? '' : '?' + params.toString();
// this contains special casing for the /photos/:assetId photos route, which hangs directly
// off / instead of a subpath, unlike every other asset-containing route.
return isPhotosRoute($page.route.id)