massgov / massgov/feature-requests
Ability to select different value for page's title tag
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 12
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
The Digital Accessibility Strategy Lead on our team suggested the addition of a mass.gov page field that lets the content entry user enter a shorted/customized version of the descriptive portion of the page title. This could be programmatically done to just isolate the the first portion of the title tag, with the website name automatically appended afterwards. They could code it in such a way that if that custom title tag field is left blank, then whatever visible page title was entered for the page is used. This would help with pages that have longer page titles that are difficult to shorten, so the actual page title does not need to be shortened, but a shortened title tag can appear in browser and is not cut off.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the page content-entry model and the code that renders the page title tag. Check how the visible page title and website name are currently combined, then determine where an optional shortened title would be stored and applied. Done means a blank custom value falls back to the visible title, while a supplied value is used in the title tag without changing the visible page title.
Written by the indexing model from the issue text.
Assessment
- Domain
- content, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100