-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic window title #5893
Comments
How I do it with my React Admin:
And it shows that in the history and as the title. |
@jtomaszewski Thanks for the suggestion! Would you mind creating a PR for it? |
Is someone currently working on this? If not, I'd be happy to give it a shot |
Fixed by #6119 |
@fzaninotto can we re-open this issue as the change was reverted. I'm going to give @wmwart's suggestion, |
Yep, the fix was reverted in #6357, so I'm reopening it. |
FYI, users can customize browser page title using react-helmet. See example code that can be placed in Show, Edit, List or Create components. <Helmet>
<title>New page title</title>
</Helmet> |
Ideally, the <Title/> component would automatically sent the title over to Helmet, rather than having users add the title to each page / view. You can use react portals to inject the title into the <title> component of react-helmet, but unfortunately, RA adds an additional around the text, which messes up the header title. It would be great if we can override the Title component as part of the customization / layout |
@fzaninotto I'm interested to work on this issue. Before opening a new PR, I will discuss the details here. |
React 19 introduces the |
Currently all our admin app browser tabs are named in the same way; and the names in the browser history aren't really helpful neither:
Maybe we could add some
useEffect
code to https://github.com/marmelab/react-admin/blob/master/packages/ra-ui-materialui/src/layout/Title.tsx that updates thedocument.title
whenever newtitle
is set? WDYT?The text was updated successfully, but these errors were encountered: