From 7721f3134298f386dba0a186c21ec0a7a0af47db Mon Sep 17 00:00:00 2001 From: Jan Doe Date: Thu, 9 Sep 2021 15:34:39 +0530 Subject: [PATCH] fix: profile urls --- community/hooks.py | 2 ++ community/lms/widgets/CourseCard.html | 2 +- community/www/courses/course.html | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/community/hooks.py b/community/hooks.py index e2d768dc..8026dd8f 100644 --- a/community/hooks.py +++ b/community/hooks.py @@ -141,6 +141,7 @@ website_route_rules = [ {"from_route": "/courses//learn/.", "to_route": "batch/learn"}, {"from_route": "/courses//progress", "to_route": "batch/progress"}, {"from_route": "/courses//join", "to_route": "batch/join"}, + {"from_route": "/users", "to_route": "profiles/profile"} ] website_redirects = [ @@ -150,6 +151,7 @@ website_redirects = [ update_website_context = [ 'community.widgets.update_website_context', ] + jinja = { "methods": [ "community.page_renderers.get_profile_url" diff --git a/community/lms/widgets/CourseCard.html b/community/lms/widgets/CourseCard.html index e73a46f2..03fd49ed 100644 --- a/community/lms/widgets/CourseCard.html +++ b/community/lms/widgets/CourseCard.html @@ -40,7 +40,7 @@ +{% if course.video_link %} +{% endif %} {% endmacro%}