Skip to content

fix(astro): set document title from ui.brand.name - #1658

Open
GlitchedCloud wants to merge 1 commit into
Thinkmill:mainfrom
GlitchedCloud:fix/astro-document-title
Open

GlitchedCloud wants to merge 1 commit into
Thinkmill:mainfrom
GlitchedCloud:fix/astro-document-title

Conversation

@GlitchedCloud

Copy link
Copy Markdown

Fixes #1464

The Astro integration now reads the brand name from the keystatic config (ui.brand.name) and injects it as the document <title>. A minimal layout with required meta tags is also added to the internal CMS page.

The Astro integration now reads the brand name from the keystatic config
(ui.brand.name) and injects it as the document <title>. A minimal <html>
layout with required meta tags is also added to the internal CMS page.
@changeset-bot

changeset-bot Bot commented Nov 10, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: eaa5131

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@GlitchedCloud

Copy link
Copy Markdown
Author

Hey team! Thanks for your awesome work on this project!

I've been having a play around with Keystatic using the Astro Integration and noticed that it doesn't set a document title in the browser.

For other integrations, a component is exposed and the title can be set on the page. However, with the Astro integration the page is rendered at /keystatic so I propose to set the document title based on the ui.brand config and fall back to Keystatic. Following a similar approach to the sidebar.

While researching this issue I also came across issue #1464 from last year - which seems to be the same issue and to have come to a similar conclusion on how to resolve.

Cheers,
Armon.

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.

Document Title is not set

1 participant