From 1d3897e2218194b8337c136379991a09e80b8a55 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Thu, 30 Jan 2025 11:05:04 -0500 Subject: [PATCH] fixup! construct absolute path --- src/app/Shared/Services/NotificationChannel.service.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/Shared/Services/NotificationChannel.service.tsx b/src/app/Shared/Services/NotificationChannel.service.tsx index 13ae97615..a91cd3ca7 100644 --- a/src/app/Shared/Services/NotificationChannel.service.tsx +++ b/src/app/Shared/Services/NotificationChannel.service.tsx @@ -78,10 +78,7 @@ export class NotificationChannel { } catch (e) { // wasn't a URL - assume it was a relative path alone, which is OK wsUrl = new URL(window.location.href); - if (!wsUrl.pathname) { - wsUrl.pathname = ''; - } - wsUrl.pathname += u; + wsUrl.pathname = u; } // set the proper protocol for WebSocket connection upgrade wsUrl.protocol = wsUrl.protocol.replace('http', 'ws');