marmelab / marmelab/react-admin

Dynamic window title

Open
#5,893 11 comments 12 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
26.9k
Forks
5.5k
Avg merge
2d 3h
Merged PRs (30d)
19

Description

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:

![image](https://user-images.githubusercontent.com/1862580/107463208-b9788980-6bb1-11eb-9e1b-d09e0ca540c6.png)

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 the `document.title` whenever new `title` is set? WDYT?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with packages/ra-ui-materialui/src/layout/Title.tsx and inspect how the title value is set. Update the document title whenever that title changes, then verify that browser tabs and history show the current page title.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.