-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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: convert incorrect breadcrumb links to opaque spans #7626
base: main
Are you sure you want to change the base?
fix: convert incorrect breadcrumb links to opaque spans #7626
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
19d7a4d
to
08222ad
Compare
Can you add a linkless story? |
Lighthouse Results
|
Thanks for the suggestion 🙂 Sure, done 🙂👍 |
addressed 👍 614899a (the solution is a bit ugly but I am not sure if much better can be done 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.
This is weird. All breadcrumb entries should be links. The fact that About Node.js is causing a hard refresh is a bug.
We shouldn't do this; we should investigate why the link wasn't a link to begin with.
It's because of the site navigation structure, for example see: there is actually no so if the breadcrumb for |
Description
It's pretty minor but I figured I could just open a PR to fix this small UI bug I noticed 🙂
The fact is that in pages with breadcrumbs at the bottom of the screen most of the time the first breadcrumbs link is not really a valid link and clicking it results in a hard reload of the app:
See:

My changes here make breadcrumb items with falsy hrefs simple text elements instead of a links, for good measure they are also dimmed to make it more evident that they are not clickable
Validation
I manually validated this check with
npm run dev
and alsonpm run build && npm run start
Check List
npm run format
to ensure the code follows the style guide.npm run test
to check if all tests are passing.npx turbo build
to check if the website builds without errors.