Support URL fragments in custom Home URLs
authorDavi Alexandre <davi@davialexandre.com.br>
Mon, 29 Oct 2018 18:54:27 +0000 (15:54 -0300)
committerDavi Alexandre <davi@davialexandre.com.br>
Mon, 29 Oct 2018 19:01:23 +0000 (16:01 -0300)
CRM/Core/BAO/Navigation.php

index 68a8de198501165f407ae282589272ba4f47f3ad..fa6620d96f45e0132ecd590222f72bdb7a1e8cf2 100644 (file)
@@ -600,8 +600,10 @@ FROM civicrm_navigation WHERE domain_id = $domainID";
       if ($homeNav) {
         $path = parse_url($homeNav['url'], PHP_URL_PATH);
         $q = parse_url($homeNav['url'], PHP_URL_QUERY);
+        $fragment = parse_url($homeNav['url'], PHP_URL_FRAGMENT);
+
+        $homeURL = CRM_Utils_System::url($path, $q, FALSE, $fragment);
 
-        $homeURL = CRM_Utils_System::url($path, $q);
         $homeLabel = $homeNav['label'];
         // CRM-6804 (we need to special-case this as we don’t ts()-tag variables)
         if ($homeLabel == 'Home') {