-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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: specify canonical URLs #7455
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. |
2 flaky tests on run #15009 ↗︎
Details:
cypress/e2e/swap/uniswapx.test.ts • 2 flaky tests • e2eReview all test suite changes for PR #7455 ↗︎ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should help a lot
@@ -35,8 +36,13 @@ if (window.ethereum) { | |||
} | |||
|
|||
function Updaters() { | |||
const location = useLocation() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there any issue with using a hook here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, <Updaters />
is a child of <Router>
. but let's switch just in case someone moves this code in the future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry i spoke too soon ... when i tested without useLocation
it breaks. because react-router handles navigations, window.location doesn't update the way we'd need it to
Description
declares the canonical for each page/route in the app in a way that removes query parameters, to better inform google.
right now, google is selecting the canonical automatically which is causing us to have a bunch of "not indexed" URLs - if we specify the canonical then google will know that this isn't an error and should just prioritize the URL we tell it to.
Linear ticket: https://linear.app/uniswap/issue/WEB-2789/seo-improvements
QA (ie manual testing)