From 25b3b0415b4826003926654ac96ed5cdef13b5f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Sch=C3=B6nberger?= <82521952+JosefSchoenberger@users.noreply.github.com> Date: Mon, 8 Jan 2024 18:02:08 +0100 Subject: [PATCH] Fix popup chat button with URL parameters (#1294) --- web/ts/components/chat-prompt.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/ts/components/chat-prompt.ts b/web/ts/components/chat-prompt.ts index 9ed6fbda6..e4c7ccabf 100644 --- a/web/ts/components/chat-prompt.ts +++ b/web/ts/components/chat-prompt.ts @@ -120,8 +120,9 @@ export function chatPromptContext(streamId: number): AlpineComponent { openPopOut() { const height = window.innerHeight * 0.8; + const location = window.location; window.open( - `${window.location.href}/chat/popup`, + `${location.origin}${location.pathname}/chat/popup${location.search}${location.hash}`, "tumlive-popout", `popup=yes,width=420,innerWidth=420,height=${height},innerHeight=${height}`, );