Skip to content
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

Customizing the page title no longer possible? #14726

Closed
chadlavi-casebook opened this issue Apr 26, 2021 · 6 comments
Closed

Customizing the page title no longer possible? #14726

chadlavi-casebook opened this issue Apr 26, 2021 · 6 comments
Labels

Comments

@chadlavi-casebook
Copy link

I have been using this method until recently to set a custom page title in storybook, but sometime in the last few releases it seems to have been broken by changes in storybook.

Is there some other, officially supported, means of changing the page title that I should use instead? If not, does anyone know a workaround that still works properly?

@steffchep
Copy link

I would like to ask the same. Ideally, a template to use for each page i.e. "Components/${name} - My Awesome Design Site"

@shilman
Copy link
Member

shilman commented Aug 31, 2021

cc @MichaelArestad

@dimitrieh
Copy link

dimitrieh commented Feb 28, 2022

@ndelangen do you have any update on this?

When referencing the storybook website URL on for example Jira it converts to a title preview badge that continues to show "Storybook" Not the configured custom title of the referenced page.

CleanShot 2022-02-27 at 19 21 33@2x

Also, when you watch closely, when the website loads, you see the title of the page change multiple times... It always starts with "Storybook" which is what Jira showcases:

CleanShot 2022-02-27 at 19 20 59

I'd say we have landed at an unideal implemented solution 🤔 .

Any insights or help regarding this matter would be welcome 🙏

@shilman
Copy link
Member

shilman commented Jun 8, 2023

We’re cleaning house! Storybook has changed a lot since this issue was created and we don’t know if it’s still valid. Please open a new issue referencing this one if:

@shilman shilman closed this as not planned Won't fix, can't repro, duplicate, stale Jun 8, 2023
@rj-wowza
Copy link

this is still a problem in 8.1.3

Github pages site showing correct title in browser:
Screenshot 2024-05-31 at 1 11 57 PM

View page source shows wrong title in actual markup:
Screenshot 2024-05-31 at 1 12 40 PM

Jira embed loads the "wrong" metadata:
Screenshot 2024-05-31 at 1 11 08 PM

This can be reproduced easily without even modifying the React 18 stackblitz at storybook.new. Changes to story title meta do not impact the actual title

@artursopelnik
Copy link

Here you could find a solution:
#6339 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants