From aead4c480990f4928c9ff5ffc02ed8c5c7a6af96 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 7 Feb 2025 23:37:36 +0100 Subject: [PATCH] Fix: fix link in attributed images, as reported by Luna --- src/Logic/ImageProviders/Panoramax.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Logic/ImageProviders/Panoramax.ts b/src/Logic/ImageProviders/Panoramax.ts index 0e9c7485e..7bf208c18 100644 --- a/src/Logic/ImageProviders/Panoramax.ts +++ b/src/Logic/ImageProviders/Panoramax.ts @@ -26,13 +26,14 @@ export default class PanoramaxImageProvider extends ImageProvider { private static knownMeta: Record = {} public SourceIcon( - img?: { id: string; url: string; host?: string }, + img?: { id: string; url: string }, location?: { lon: number lat: number } ): BaseUIElement { - const p = new Panoramax(img.host) + const host = ("https://" + new URL(img.url).host) + const p = new Panoramax(host) return new Link( new SvelteUIElement(Panoramax_bw), p.createViewLink({