Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Pathauto installed.
I need to be able to email reports which have strict constant URL like 'node/100500', but MimeMail calls a url() function to text of email body and my URLs turn into aliases.
Please provide a option to module admin UI to call URL with parameter 'alias'=>true
/sites/all/modules/mimemail/mimemail.inc:516 url($path = null, array $options = array())
SourceArguments (2)
'query' => ($query) ? drupal_get_query_array($query) : array(),
'fragment' => $fragment,
'absolute' => TRUE,
'language' => $language,
'prefix' => $prefix,
//'alias' => TRUE // -- this to be added if omit option is ON
);
$url = url($path, $options);
// If url() added a ?q= where there should not be one, remove it.
if (preg_match('!^\?q=*!', $url)) {
$url = preg_replace('!\?q=!', '', $url);
}
$url = str_replace('+', '%2B', $url);
Comments
Comment #2
Mykola DolynskyiComment #3
Mykola DolynskyiComment #4
TR CreditAttribution: TR commentedNew features should go into 8.x-1.x first at this point in time, then they can be backported to 7.x-1.x if there is interest from the community.