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

Fix canonical meta data #6564

Closed
rfultz opened this issue Nov 20, 2024 · 0 comments · Fixed by #6565
Closed

Fix canonical meta data #6564

rfultz opened this issue Nov 20, 2024 · 0 comments · Fixed by #6565
Assignees
Milestone

Comments

@rfultz
Copy link
Contributor

rfultz commented Nov 20, 2024

Summary

What we're after:

Fix our canonical url links to improve accuracy and search engine crawling, and clean up site reports.

<link rel="canonical"> tags tell search engines the preferred/single URLs for pages. For our use, it would be removing query params so all the various …?var=val&var=val&var=val urls would be seen (by search engines) as the URL before the ?, i.e. the page path.

/data/* should not show its canonical page as /
Image

Related issues

None

Completion criteria

Our <link rel="canonical"> look more like individual URLs instead of simply <link rel="canonical" href="https://www.fec.gov/"> site-wide.

Tech steps or considerations (optional)

  • Google: What is canonicalization?
  • Are there pages where we'd want a canonical href to continue past the page path?
  • Are there pages that we'd like to assign special, one-off canonical href values?
  • Should we remove CANONICAL_BASE from our various global/window front-end values? i.e. if it's not being used, is there any reason to keep it?

Future work

?

@rfultz rfultz added this to the 26.i milestone Nov 20, 2024
@rfultz rfultz self-assigned this Nov 20, 2024
@rfultz rfultz moved this to 🏗 In Progress in Website project Nov 20, 2024
@rfultz rfultz moved this from 🏗 In Progress to 👀 Ready in Website project Nov 21, 2024
@github-project-automation github-project-automation bot moved this from 👀 Ready to ✅ Done in Website project Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

1 participant