Skip to content

fix: render certificates when no About URL is configured - #39247

Open
bmtcril wants to merge 1 commit into
masterfrom
bmtcril/fix-cert-002
Open

bmtcril wants to merge 1 commit into
masterfrom
bmtcril/fix-cert-002

Conversation

@bmtcril

@bmtcril bmtcril commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

The certificate web view's "About" section rendered company_about_url unconditionally, but that name is only put in the context when an About page URL is configured: by an enabled CertificateHtmlViewConfiguration, the site configuration's urls, or the marketing URLs. Since the marketing link fallback to the LMS's own pages was removed, a default install has none of these, so valid.html raised NameError: Undefined and every learner's "View my certificate" link answered 500.

Leave the "Learn more" link out when the URL is undefined, the same guard the certificate footer already uses for the Terms of Service and Privacy Policy links.

Closes #39222

The certificate web view's "About" section rendered `company_about_url`
unconditionally, but that name is only put in the context when an About
page URL is configured: by an enabled CertificateHtmlViewConfiguration,
the site configuration's `urls`, or the marketing URLs. Since the
marketing link fallback to the LMS's own pages was removed, a default
install has none of these, so `valid.html` raised `NameError: Undefined`
and every learner's "View my certificate" link answered 500.

Leave the "Learn more" link out when the URL is undefined, the same guard
the certificate footer already uses for the Terms of Service and Privacy
Policy links.

Closes #39222

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Certificate web view 500s (NameError company_about_url) when no About URL is configured, since #38720

1 participant