Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Settings: Active Link Highlight is not maintained when a query string is present in the location.
Description
Navigation within Settings for most modules highlights the last selected menu link with a dark gray styling. Certain modules that add a query to their navigation URL’s do not retain the highlight… this is due to some broken logic within STSMACOM Settings component… A string is contrived to check the href’s of the links to likeness with the value in the address bar - STSMACOM-709 / https://folio-org.atlassian.net/browse/UIDATIMP-1321 added the query string to this contrived string… but the comparison is to location.pathname is impossible at that point since pathname won’t contain the search string!
Navigation within Settings for most modules highlights the last selected menu link with a dark gray styling.
Certain modules that add a query to their navigation URL’s do not retain the highlight… this is due to some broken logic within STSMACOM Settings component…
A string is contrived to check the href’s of the links to likeness with the value in the address bar -
STSMACOM-709 / https://folio-org.atlassian.net/browse/UIDATIMP-1321 added the query string to this contrived string…
but the comparison is to
location.pathname
is impossible at that point sincepathname
won’t contain thesearch
string!