Skip to content

Require all final breadcrumbs to not point to their parents - #3337

Merged
david-crespo merged 2 commits into
mainfrom
bad-crumbs
Aug 21, 2026
Merged

Require all final breadcrumbs to not point to their parents#3337
david-crespo merged 2 commits into
mainfrom
bad-crumbs

Conversation

@fakemonster

Copy link
Copy Markdown
Contributor

Inspired by a comment on Charlie's webhooks PR. I was curious on whether there were terminal breadcrumbs that didn't abide by this reasoning, and inadvertently pointed to parent pages. And there were!

Breadcrumbs breaking this rule fell into two cases:

  1. Pointing to a parent view that defaulted back to "where you just came from". Not a big deal, but a little silly
  2. Pointing to a parent view that then defaulted to some other place. That's weird!

Breadcrumbs breaking this rule fell into two cases:

1. Pointing to a parent view that defaulted back to "where you just came
   from". Not a big deal, but a little silly
2. Pointing to a parent view that then defaulted to _some other place._
   That's weird!
@vercel

vercel Bot commented Aug 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
console Ready Ready Preview Aug 21, 2026 10:44pm

Request Review

@fakemonster

Copy link
Copy Markdown
Contributor Author

Terrible commit name

@fakemonster fakemonster changed the title require all breadcrumbs to point to the same page Require all final breadcrumbs to not point to their parents Aug 19, 2026
if (last === undefined) expect.fail(`Found no breadcrumbs for ${path}`)
expect(dropFinalSlash(path)).toEqual(dropFinalSlash(last.path))
}
})

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

love this kind of test

@david-crespo
david-crespo enabled auto-merge (squash) August 21, 2026 22:45
@david-crespo
david-crespo merged commit 4f92755 into main Aug 21, 2026
7 checks passed
@david-crespo
david-crespo deleted the bad-crumbs branch August 21, 2026 22:53
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