diff --git a/frontend/src/components/CourseCard.vue b/frontend/src/components/CourseCard.vue index fb99f1d4..64d03334 100644 --- a/frontend/src/components/CourseCard.vue +++ b/frontend/src/components/CourseCard.vue @@ -2,7 +2,7 @@
-
+
{{ course.lessons }} {{ __('lessons') }} diff --git a/frontend/src/components/StreamEmbed.vue b/frontend/src/components/StreamEmbed.vue index 125deefa..3304dac3 100644 --- a/frontend/src/components/StreamEmbed.vue +++ b/frontend/src/components/StreamEmbed.vue @@ -104,7 +104,8 @@ const embedUrl = computed(() => { if (props.platform === 'youtube') { // Supports both video ID and live stream - return `https://www.youtube.com/embed/${props.channel}?autoplay=0&rel=0` + const origin = encodeURIComponent(window.location.origin) + return `https://www.youtube.com/embed/${props.channel}?autoplay=0&rel=0&origin=${origin}` } return ''