fix: seo link redirections and guest certificate
This commit is contained in:
@@ -146,9 +146,8 @@ website_redirects = [
|
||||
{"source": "/update-profile", "target": "/edit-profile"},
|
||||
{"source": "/courses", "target": "/lms/courses"},
|
||||
{
|
||||
"source": r"/courses/([^/]*)",
|
||||
"source": r"^/courses/.*$",
|
||||
"target": "/lms/courses",
|
||||
"match_with_query_string": True,
|
||||
},
|
||||
{"source": "/batches", "target": "/lms/batches"},
|
||||
{
|
||||
@@ -232,7 +231,8 @@ jinja = {
|
||||
# ]
|
||||
|
||||
has_website_permission = {
|
||||
"LMS Certificate Evaluation": "lms.lms.doctype.lms_certificate_evaluation.lms_certificate_evaluation.has_website_permission"
|
||||
"LMS Certificate Evaluation": "lms.lms.doctype.lms_certificate_evaluation.lms_certificate_evaluation.has_website_permission",
|
||||
"LMS Certificate": "lms.lms.doctype.lms_certificate.lms_certificate.has_website_permission",
|
||||
}
|
||||
|
||||
profile_mandatory_fields = [
|
||||
@@ -270,6 +270,7 @@ lms_markdown_macro_renderers = {
|
||||
page_renderer = [
|
||||
"lms.page_renderers.ProfileRedirectPage",
|
||||
"lms.page_renderers.ProfilePage",
|
||||
"lms.page_renderers.CoursePage",
|
||||
]
|
||||
|
||||
# set this to "/" to have profiles on the top-level
|
||||
|
||||
Reference in New Issue
Block a user