Commit 2fa52b10 authored by Moshe Weitzman's avatar Moshe Weitzman Committed by Derek Wright
Browse files

Issue #2692641 by rikki_iki, moshe weitzman, steveoriol, nplowman, dww:...

Issue #2692641 by rikki_iki, moshe weitzman, steveoriol, nplowman, dww: Convert href to the aliased url if possible
parent 71a45a63
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -326,6 +326,7 @@ function _pathologic_replace($matches) {
    'path' => $parts['path'],
    'options' => [
      'query' => $parts['qparts'],
      'path_processing' => TRUE,
      'fragment' => isset($parts['fragment']) ? $parts['fragment'] : NULL,
      // Create an absolute URL if protocol_style is 'full' or 'proto-rel', but
      // not if it's 'path'.
@@ -359,7 +360,7 @@ function _pathologic_replace($matches) {
  }
  else {
    try {
      $url = Url::fromUri('base://' . $url_params['path'], $url_params['options'])
      $url = Url::fromUri('base:/' . $url_params['path'], $url_params['options'])
        ->toString();
    }
    catch (\Exception $e) {