Convert href to the aliased url if possible

Created on 23 March 2016, over 8 years ago
Updated 23 June 2023, over 1 year ago

The Drupal 7 version used to render the URL alias if it could, but I can't get the 8.x version to do it.

Using 'Protocol relative URL', and entering a path of "/node/2" the output is http://example/node/2
But I would expect it to be http://example.com/alias-of-node-2

Using Url::fromUserInput instead of Url::fromUri seems to achieve this so I'll add a patch.

✨ Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia rikki_iki Melbourne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024