fix(a11y): set document.title from the page title every route hands AppLayout (MAPPS-287) #298
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/mokosh-apps!298
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-287-per-route-doc-titles"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
AppLayoutalready took atitleprop and rendered it in the top bar, butdocument.titlewas never touched - every tab read "Mokosh Platform" regardless of route, which broke browser history, bookmarks, tab identification, and the title-announcement screen readers make on navigation. Add ause_effectinAppLayoutthat mirrorsprops.titleintodocument.titleon every render, formatted as<page> | Mokosh Platformwhen the page supplies a title and plainMokosh Platformotherwise (matches Bunyip's pattern). Re-runs on every render so a detail page that swapsLoading...for the record name on its first paint propagates the change without a route change.#MAPPS-287