Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't mess up fragment links in nav menu #12876

Merged
merged 1 commit into from
Sep 29, 2018
Merged

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Sep 27, 2018

Summary

Fixes an edge-case bug where fragment links ('e.g.' javascript-oriented links like <a href="#summary">) aren't rendering properly in the navigation menu.

This is a follow-up to #12702

@@ -482,7 +482,6 @@ public static function getMenuName(&$value, &$skipMenuItems) {
$parentID = CRM_Utils_Array::value('parentID', $value['attributes']);
$navID = CRM_Utils_Array::value('navID', $value['attributes']);
$active = CRM_Utils_Array::value('active', $value['attributes']);
$menuName = CRM_Utils_Array::value('name', $value['attributes']);
Copy link
Member Author

Choose a reason for hiding this comment

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

PHPStorm says this variable was unused.

@totten
Copy link
Member

totten commented Sep 29, 2018

The PR test failures are common false-negatives.

I did the r-run on the autobuilt test site and noted a few existing pages which include # characters in the URL (Angular pages). Tried various transitions (between normal<=>angular page; normal<=>normal; angular<=>angular) and they seemed to work.

@totten totten merged commit 98d0b6c into civicrm:master Sep 29, 2018
@totten totten deleted the Don't branch September 29, 2018 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants