Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Fixed join code copy to clipboard #404

Merged
merged 2 commits into from
May 23, 2024
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
2 changes: 1 addition & 1 deletion frontend/src/components/Courses/CourseDetailTeacher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ function JoinCodeMenu({
const handleCopyToClipboard = (join_code: string) => {
const host = window.location.host;
navigator.clipboard.writeText(
`${host}/${i18next.resolvedLanguage}/courses/join?code=${join_code}`
`${window.location.protocol}//${host}/${i18next.resolvedLanguage}/courses/join?code=${join_code}`
);
};

Expand Down