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

Mykola Dolynskyi created an issue. See original summary.

Mykola Dolynskyi’s picture

Title: option to ommit alias for path » option to omit alias for path
Mykola Dolynskyi’s picture

Issue summary: View changes
TR’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
Category: Bug report » Feature request
Priority: Major » Normal

New 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.