Skip to content

fix(breadcrumb, item-option): pass rel to the link - #31726

Open
adityajai119 wants to merge 1 commit into
ionic-team:mainfrom
adityajai119:fix-breadcrumb-item-option-rel
Open

adityajai119 wants to merge 1 commit into
ionic-team:mainfrom
adityajai119:fix-breadcrumb-item-option-rel

Conversation

@adityajai119

Copy link
Copy Markdown

Issue number: resolves #31725


What is the current behavior?

ion-breadcrumb and ion-item-option declare and document a rel prop, but the <a> they render with href only gets download, href and target. The rel value is dropped. ion-button and ion-item already pass rel to their <a>.

What is the new behavior?

  • ion-breadcrumb passes rel to its <a>.
  • ion-item-option passes rel to its <a>.
  • Added a spec test for each component that checks the rel attribute on the rendered link.

Does this introduce a breaking change?

  • Yes
  • No

Other information

  • Reproduction: the issue includes a self-contained HTML page that uses the 9.0.10 CDN build. In Chromium it shows no rel on the breadcrumb and item-option links, and rel="nofollow" on the ion-button link.
  • The two new spec tests fail on main (Expected: "noopener noreferrer", Received: null) and pass with this change.
  • stencil test --spec for breadcrumb, breadcrumbs, item-option and item-sliding: 5 suites, 9 tests pass.
  • ESLint (0 errors) and Prettier pass on the changed files.

AI-assisted: drafted with an AI coding agent; the tests above were run locally.

@adityajai119
adityajai119 requested a review from a team as a code owner November 10, 2026 19:55
@adityajai119
adityajai119 requested a review from ShaneK November 10, 2026 19:55
@vercel

vercel Bot commented Nov 10, 2026

Copy link
Copy Markdown

@adityajai119 is attempting to deploy a commit to the Ionic Team on Vercel.

A member of the Team first needs to authorize it.

Both components declare and document a rel prop, but only passed download, href and target to the rendered anchor. ion-button and ion-item already pass rel.

resolves ionic-team#31725
@adityajai119
adityajai119 force-pushed the fix-breadcrumb-item-option-rel branch from d8b0591 to 8259fce Compare November 13, 2026 09:29

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: rel is not applied to the link in ion-breadcrumb and ion-item-option

1 participant