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

Docs: strip trailing slashes #2978

Merged
merged 2 commits into from
Jan 7, 2025
Merged

Docs: strip trailing slashes #2978

merged 2 commits into from
Jan 7, 2025

Conversation

archiewood
Copy link
Member

@archiewood archiewood commented Jan 6, 2025

Description

CleanShot 2025-01-06 at 17 20 55@2x

  • Ahrefs flags this as an issue, as we have links both with or without trailing slashes. This creates duplicate pages that are indexed i.e.
    • docs.evidence.dev/components/bar-chart
    • docs.evidence.dev/components/bar-chart/
  • These pages then split the traffic from search engines, diluting them
  • This PR consistently applies no trailing slashes, ie docs.evidence.dev/components/bar-chart
  • A product side feature to fix this would be to explicitly add canonical urls to all pages

Checklist

  • For UI or styling changes, I have added a screenshot or gif showing before & after
  • I have added a changeset
  • I have added to the docs where applicable
  • I have added to the VS Code extension where applicable

@archiewood archiewood requested a review from mcrascal January 7, 2025 15:25
@archiewood archiewood merged commit 3ac42c3 into next Jan 7, 2025
54 of 61 checks passed
@archiewood archiewood deleted the strip-trailing-slashes branch January 7, 2025 15:25
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