Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.4.13, 4.6
-
Fix Version/s: 4.6.1
-
Component/s: Core CiviCRM
-
Labels:None
-
Documentation Required?:None
Description
CRM_Utils_System_Drupal->getLoginURL is supposed to generate a login URL - but it calls CRM_Utils_DrupalBase->url without specifying it should be an absolute URL. Since this function seems mostly to exist to generate login URLs for e-mail templates, this should always be an absolute URL.
I'll submit a patch for code review as soon as my client tests it - but it's a simple matter of this:
return url('user', array('query' => $query));
to this:
return url('user', array('query' => $query), TRUE);
Presumably it should be changed for Drupal 6 and 8 as well.