diff --git a/apps/web/src/components/invite-dialog.tsx b/apps/web/src/components/invite-dialog.tsx
index 4c8175f30..fcac842df 100644
--- a/apps/web/src/components/invite-dialog.tsx
+++ b/apps/web/src/components/invite-dialog.tsx
@@ -20,6 +20,7 @@ export function CopyInviteLinkButton() {
const [didCopy, setDidCopy] = React.useState(false);
const [state, copyToClipboard] = useCopyToClipboard();
const poll = usePoll();
+ const inviteLinkWithoutProtocol = poll.inviteLink.replace(/^https?:\/\//, "");
React.useEffect(() => {
if (state.error) {
@@ -41,7 +42,7 @@ export function CopyInviteLinkButton() {
{didCopy ? (
) : (
- {`${window.location.hostname}/invite/${poll.id}`}
+ {inviteLinkWithoutProtocol}
)}
);