From c8f8ccb74c9ca06f88a8a2453330f7708a684425 Mon Sep 17 00:00:00 2001 From: Iliano101 Date: Sun, 12 Jan 2025 23:09:23 -0500 Subject: [PATCH] Fix incorrect user redirect --- src/app/chat/UserCard.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/chat/UserCard.vue b/src/app/chat/UserCard.vue index d7cb1726..4220459e 100644 --- a/src/app/chat/UserCard.vue +++ b/src/app/chat/UserCard.vue @@ -167,6 +167,9 @@ const props = defineProps<{ target: ChatUser; }>(); + +const TWITCH_ROOT_URL = "https://twitch.tv"; + const emit = defineEmits<{ (e: "close"): void; (e: "mount-handle", handle: HTMLDivElement): void; @@ -440,7 +443,7 @@ function highlightUserMessages(): void { } function getProfileURL(): string { - return window.location.origin + "/" + props.target.username; + return `${TWITCH_ROOT_URL}/${props.target.username}`; } function formatDateToString(date?: string): string {