Admin: Title Separator field can't be cleared (input falls back to "|")
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 80/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- frontend
Research direction
Start in SeoSettings in @emdash-cms/admin and inspect the Title Separator input's value and placeholder. The issue identifies the fallback that restores | when the value is empty. Done when the field can be cleared, a new value can be entered and saved, and the displayed default remains available as a placeholder.
Written by the indexing model from the issue text.
Description
Description
In the admin, Settings > SEO > Title Separator can't be cleared, so it can't be changed by deleting the current value. SeoSettings (@emdash-cms/admin) renders the input with:
value: formData.seo?.titleSeparator || "|"
When the field becomes empty, the || "|" fallback puts | back. Backspace never clears it, and anything typed is appended after it (| becomes |-), which then gets saved. The server side is fine: the schema is titleSeparator: z.string().max(10).optional() and the value is stored as typed.
Suggested fix: value: formData.seo?.titleSeparator ?? "" with placeholder: "|". Note also that the displayed default | differs from getSeoMeta()'s default " | ".
Workaround: select the whole field (Cmd/Ctrl+A) and type the new value over it.
Steps to reproduce
- Open the admin, Settings > SEO.
- Click in Title Separator (showing
|), press Backspace: the field still shows|. - Type
-: the field shows|-. Save: the stored separator is|-, and page titles readPage|-Site.
Environment
- emdash / @emdash-cms/admin 1.1.0 and 1.2.0 (same code in both)
- Astro 7.3, Cloudflare Workers adapter (D1), reproduced locally with
astro devand in production - Chrome on macOS
Screenshots
None: the behaviour is in the code line above and fully described by the steps.
- Dominant language
- TypeScript
- Stars
- 13.4k
- Forks
- 1.3k
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 365
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from emdash-cms/emdash
-
plugin-forms: autoresponder and Reply-To use the first email field, even an optional onePossibly taken @eisenbruch claimed this 3 days ago. Openarea/plugins bot:fix triage/awaiting-reporter
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
emdash-cms/emdash#4504 · 4 comments ·
Maintainers usually reply within 1 day
-
WordPress import review labels the SEO toggle "SEO settings (Yoast)" even when the site uses Rank MathPossibly taken @iNerdStack claimed this 12 days ago. Openbot:bug bot:needs-attention
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
emdash-cms/emdash#4110 · 3 comments ·
Maintainers usually reply within 1 day
-
bot:bug bot:needs-attention bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
emdash-cms/emdash#3992 · 2 comments ·
Maintainers usually reply within 1 day
-
bot:bug bot:needs-attention
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
emdash-cms/emdash#3972 · 2 comments ·
Maintainers usually reply within 1 day
-
bot:needs-attention bot:task
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
emdash-cms/emdash#3821 · 1 comment ·
Maintainers usually reply within 1 day
All issues in emdash-cms/emdash
Similar issues
-
Difficulty 2/5 Under an hour Newbie friendliness 86/100
WilliamSmithEdward/xlide_vscode#1564 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
a2ui-project/a2ui#3809 ·
Maintainers usually reply within 2 days
-
[Bug] A write skipped for exceeding the size limit leaves its finished temp file in the libraryOpen
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 4 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
esphome/device-builder-frontend#2064 ·
Maintainers usually reply within 1 day
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 61/100
lingdojo/kana-dojo#33465 · 1 comment · 5 reactions ·
Maintainers usually reply within 1 day