sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

URL with react hash router is not highlighted properly

Open christianteh opened this issue 3 years ago • 4 comments

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

Windows

What browser(s) / client(s) have you tested

  • [ ] 💥 Internet Explorer
  • [X] 💥 Microsoft Edge
  • [X] 💥 Google Chrome
  • [ ] 💥 FireFox
  • [ ] 💥 Safari
  • [ ] mobile (iOS/iPadOS)
  • [ ] mobile (Android)
  • [ ] not applicable
  • [ ] other (enter in the "Additional environment details" area below)

Additional environment details

  • browser version
  • SPFx version 15
  • Node.js version 14

Describe the bug / error

Adding multiple links to SharePoint navigation to directly access components through hash router ( for example default.aspx#/Order, default.aspx#/Invoice) will result in incorrect link being highlighted (compositeLinkIsSelected)

Steps to reproduce

Add multiple URLs with hash on the same page: default.aspx#/Order default.aspx#/Invoice default.aspx#/Report

go to default.aspx#/Order , the navigation will highlight default.aspx#/Report link

Expected behavior

compositeLinkIsSelected is applied to correct link

christianteh avatar Sep 21 '23 06:09 christianteh

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Sep 21 '23 06:09 ghost

Hi there, thanks for this report. Can you share more information about what you are doing here, e.g. where these links are being configured?

nick-pape avatar Oct 23 '23 16:10 nick-pape

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within the next 7 days of this comment. Please see our wiki for more information: Issue List Labels: Needs Author Feedback & Issue List: No response from the original issue author

ghost avatar Oct 30 '23 18:10 ghost

Closing issue due to no response from the original author. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: No response from the original issue author

ghost avatar Nov 06 '23 22:11 ghost