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}`, );