fix(web): update unauthorized share link handling (#7126)

This commit is contained in:
Ben McCann
2024-02-14 20:01:01 -08:00
committed by GitHub
parent 9b814354a4
commit dabbd63a02
2 changed files with 3 additions and 5 deletions

View File

@@ -13,7 +13,6 @@ import {
unlinkOAuthAccount,
type UserResponseDto,
} from '@immich/sdk';
import { common } from '@immich/sdk/axios';
import { get } from 'svelte/store';
interface UpdateParamAction {
@@ -91,7 +90,7 @@ const createUrl = (path: string, parameters?: Record<string, unknown>) => {
const url = new URL(path, 'https://example.com');
url.search = searchParameters.toString();
return defaults.baseUrl + common.toPathString(url);
return defaults.baseUrl + url.pathname + url.search + url.hash;
};
export const getAssetFileUrl = (...[assetId, isWeb, isThumb]: [string, boolean, boolean]) => {