Skip to content

Bug - JumpLinksItem - href does not work properly #8309

@jenny-s51

Description

@jenny-s51

Describe the problem
A clear and concise description of the problem. Which components are affected?
If a JumpLinksItem is clicked, the url does not update as expected when clicked.

How do you reproduce the problem?
Provide steps to reproduce. A codesandbox demonstrating the problem is appreciated.
https://www.patternfly.org/v4/components/jump-links/react-demos/scrollspy-with-subsections/

  1. Right click on a jumplink.
  2. Click "Open in new tab"
  3. See that the anchor tag is appended to the URL for the jump link.
  4. Go back to the same demo in the other tab.
  5. Now Left click on any of the jump links.
  6. Notice that the anchor is never appended to the URL.

Expected behavior
A clear and concise description of the expected behavior.
We expect the URL to always append the anchor tag through the href attribute in the same window/tab.

Is this issue blocking you?
Cannot implement this feature in org until this bug is fixed.
See patternfly/patternfly-org#3120

Screenshots

Current:
Screen Shot 2022-10-31 at 11 06 54 AM

Expected:
Screen Shot 2022-10-31 at 11 07 44 AM

What is your environment?

  • Chrome

Metadata

Metadata

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions