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

Add Primer CSS redirects #369

Merged
merged 3 commits into from
Jul 13, 2023
Merged

Add Primer CSS redirects #369

merged 3 commits into from
Jul 13, 2023

Conversation

langermank
Copy link
Contributor

Gatsby docs for Primer CSS have all moved to Storybook. This adds a root redirect to Storybook, but also tries to direct traffic for utility docs to /design.

Do I need to add a redirect for every single page in Primer CSS docs?

Testing

I pushed this to staging:

https://primerstyle-staging.azurewebsites.net/css should render Storybook
https://primerstyle-staging.azurewebsites.net/css/utilities should render /design site

Copy link
Contributor

@rezrah rezrah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Tested URLs and they work as described. Can't see regressions to any other site.

Just to check though @langermank... we're going to see 404's to any bookmarked Gatsby urls. Are we comfortable with that? Or should they be redirected to a primer.style/design page?

E.g. If someone has bookmarked this URL previously: /css/components/links/

@langermank
Copy link
Contributor Author

We've decided to move forward with this limited set of redirects, and if it becomes an issue we will add high traffic redirects in addition to roots.

@langermank langermank merged commit 8057214 into main Jul 13, 2023
2 checks passed
@langermank langermank deleted the primer-css-redirects branch July 13, 2023 22:09
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.

2 participants