Skip to content

Remove redirects for skeleton components#416

Merged
adierkens merged 2 commits intomainfrom
skeleton-redirects
Feb 12, 2026
Merged

Remove redirects for skeleton components#416
adierkens merged 2 commits intomainfrom
skeleton-redirects

Conversation

@adierkens
Copy link
Contributor

@adierkens adierkens commented Feb 9, 2026

Removes the dns redirects for skeleton loaders so they are loaded natively

Related: https://github.com/github/primer-docs/pull/897

Copilot AI review requested due to automatic review settings February 9, 2026 21:55
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the site’s redirect configuration to stop redirecting certain legacy URLs (notably skeleton component routes) and to adjust an accessibility redirect target.

Changes:

  • Removed redirect rules for legacy /components/skeleton-* (and /figma) paths.
  • Updated the /accessibility/semantic-html redirect destination to /accessibility/design-guidance/semantic-html-and-aria/ and removed the corresponding /guides/... redirect.
Comments suppressed due to low confidence (1)

redirects.json:1066

  • The PR description/title are about removing redirects for skeleton components, but this hunk also changes the /accessibility/semantic-html redirect target and removes the /guides/accessibility/semantic-html redirect. If this is intentional, it would be helpful to call it out in the PR description (or split into a separate PR) so reviewers can assess the risk/intent separately.
      "name": "Redirect /accessibility/semantic-html to /accessibility/design-guidance/semantic-html-and-aria",
      "match": "^accessibility/semantic-html/?$",
      "destination": "/accessibility/design-guidance/semantic-html-and-aria/"

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 1384 to 1390
"name": "Redirect /components to /product/components",
"match": "^components/?$",
"destination": "/product/components/"
},
{
"name": "Redirect /components/skeleton-*/figma to /products/components/skeleton-loaders/",
"match": "^components/skeleton-(.*)/figma/?",
"destination": "/product/components/skeleton-loaders/"
},
{
"name": "Redirect /components/skeleton-* to /products/components/skeleton-loaders",
"match": "^components/skeleton-(.+)",
"destination": "/product/components/skeleton-loaders"
},
{
"name": "Redirect /components/selectpanel/react/* to /product/components/select-panel/",
"match": "^components/selectpanel/react",
Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

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

This PR removes the /components/skeleton-* and /components/skeleton-*/figma redirect rules. After this change those legacy URLs will no longer be redirected by web.config, so they will 404 unless the site serves them natively. Please confirm the corresponding native routes exist (including the /figma variant if still referenced) or keep a redirect in place until all callers/links are updated.

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The native routes are being added in a PR in a different repo.

@adierkens adierkens merged commit 81c607d into main Feb 12, 2026
5 checks passed
@adierkens adierkens deleted the skeleton-redirects branch February 12, 2026 20:13
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