Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for the invite link for members not including the context path #2710

Merged
merged 1 commit into from
Feb 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/web/src/components/invites/MembersTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { colors, Dropdown, Tag } from '../../design-system';
import useStyles from '../../design-system/config/text.styles';
import { MemberRole } from './MemberRole';
import { When } from '../utils/When';
import { CONTEXT_PATH } from '../../config';

export function MembersTable({
members,
Expand Down Expand Up @@ -36,7 +37,7 @@ export function MembersTable({
}

function onCopyInviteLinkClick(currentMemberToken: any): void {
const inviteLink = `${window.location.origin.toString()}/auth/invitation/${currentMemberToken}`;
const inviteLink = `${window.location.origin.toString()}${CONTEXT_PATH}/auth/invitation/${currentMemberToken}`;
clipboardInviteLink.copy(inviteLink);
}

Expand Down