Skip to content

fix: set document title via Helmet on the not-found route#1670

Merged
arbrandes merged 1 commit intoopenedx:frontend-basefrom
arbrandes:arbrandes/page-titles
Apr 29, 2026
Merged

fix: set document title via Helmet on the not-found route#1670
arbrandes merged 1 commit intoopenedx:frontend-basefrom
arbrandes:arbrandes/page-titles

Conversation

@arbrandes
Copy link
Copy Markdown
Contributor

Description

Refs openedx/frontend-base#250.

NotFoundPage was the only route child in authn that didn't render a <Helmet> block, so /authn/notfound kept whatever document title the previous page had set. This PR closes the gap by adding the same <Helmet> pattern the other authn pages already follow, with a new error.notfound.page.title message defaulting to Page Not Found | {siteName}.

The pattern is set out in frontend-base ADR 0015.

LLM usage notice

Built with assistance from Claude.

NotFoundPage was the only authn route child without a <Helmet> block,
so /authn/notfound kept whatever title the previous page set.  Add the
title following the per-page pattern from frontend-base ADR 0015.

Refs openedx/frontend-base#250.

Co-Authored-By: Claude <[email protected]>
@arbrandes arbrandes linked an issue Apr 29, 2026 that may be closed by this pull request
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 29, 2026

Codecov Report

❌ Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (frontend-base@65c13df). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/common-components/NotFoundPage.jsx 33.33% 2 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##             frontend-base    #1670   +/-   ##
================================================
  Coverage                 ?   92.03%           
================================================
  Files                    ?       93           
  Lines                    ?     2047           
  Branches                 ?      577           
================================================
  Hits                     ?     1884           
  Misses                   ?      160           
  Partials                 ?        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@arbrandes arbrandes merged commit d1993a6 into openedx:frontend-base Apr 29, 2026
6 checks passed
@arbrandes arbrandes deleted the arbrandes/page-titles branch April 29, 2026 17:52
@openedx-semantic-release-bot
Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0-alpha.13 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Page title not updating after logging in

3 participants