From ee3a854d14b6ea2644aec93e6903c311928a39c1 Mon Sep 17 00:00:00 2001 From: Leangseu Kim Date: Wed, 17 May 2023 16:41:53 -0400 Subject: [PATCH] chore: update og:url for video sharing --- lms/djangoapps/courseware/views/views.py | 6 +++++- lms/templates/public_video.html | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/courseware/views/views.py b/lms/djangoapps/courseware/views/views.py index 78731c5654..e5039555f8 100644 --- a/lms/djangoapps/courseware/views/views.py +++ b/lms/djangoapps/courseware/views/views.py @@ -1863,7 +1863,11 @@ class PublicVideoXBlockView(BasePublicVideoXBlockView): 'video_embed_url': urljoin( settings.LMS_ROOT_URL, reverse('render_public_video_xblock_embed', kwargs={'usage_key_string': str(video_block.location)}) - ) + ), + 'video_url': urljoin( + settings.LMS_ROOT_URL, + reverse('render_public_video_xblock', kwargs={'usage_key_string': str(video_block.location)}) + ), } def get_learn_more_button_url(self, course, catalog_course_data, utm_params): diff --git a/lms/templates/public_video.html b/lms/templates/public_video.html index 5193f8fbce..bc8479ac92 100644 --- a/lms/templates/public_video.html +++ b/lms/templates/public_video.html @@ -10,7 +10,7 @@ from django.utils.translation import gettext as _ - +