From fa6998a48e6bfcad6c3ef92d5e4648350bef5531 Mon Sep 17 00:00:00 2001 From: Ben Stein Date: Mon, 6 Jan 2025 10:49:13 -0500 Subject: [PATCH] Cleanup --- .../gameboard-ui/src/app/core/pipes/game-map-image-url.pipe.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/gameboard-ui/src/app/core/pipes/game-map-image-url.pipe.ts b/projects/gameboard-ui/src/app/core/pipes/game-map-image-url.pipe.ts index c61d4b65..e7748ffe 100644 --- a/projects/gameboard-ui/src/app/core/pipes/game-map-image-url.pipe.ts +++ b/projects/gameboard-ui/src/app/core/pipes/game-map-image-url.pipe.ts @@ -11,6 +11,7 @@ export class GameMapImageUrlPipe implements PipeTransform { if (!value) { return `${this.config.basehref}assets/map.png`; } + const isAbsolute = new URL(this.document.baseURI).origin !== new URL(value, this.document.baseURI).origin; return isAbsolute ? value : `${this.config.imagehost}/${value}`; }