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

Navigation - Don't reprocess fully-formed urls #12702

Merged
merged 1 commit into from
Aug 21, 2018
Merged

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Aug 20, 2018

Overview

Fixes an edge-case bug where fully-formed relative urls were being reprocessed and messed up in the menubar.

Before

Urls starting with a forward slash would end up with two slashes in front and garbled params.

After

Relative urls, absolute urls, and local urls all processed correctly.

Technical Details

CRM_Core_BAO_Navigation can handle both internal and external urls, however it was incorrectly handling urls that started with a forward slash as it didn't correctly identify them as already processed and tried to run them through CRM_Utils_System::url() again.

@civibot
Copy link

civibot bot commented Aug 20, 2018

(Standard links)

@lcdservices
Copy link
Contributor

@colemanw tested and confirmed. I could reproduce the error by creating a new navigation item with a leading slash. After applying the patch and clearing cache, the menu link worked as expected.

@colemanw colemanw merged commit ac7cef9 into civicrm:master Aug 21, 2018
@colemanw colemanw deleted the urls branch August 21, 2018 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants