If a relative URL that isn't mapped to a route in Drupal is in a menu structure, then a fatal error will be thrown:

UnexpectedValueException: External URLs do not have internal route parameters. in Drupal\Core\Url->getRouteParameters() (line 571 of /Users/dbailey/Sites/ForgeCMS/docroot/core/lib/Drupal/Core/Url.php).

These URIs are prefixed with base: and should generally be treated like external URLs. My patch adds in extra logic that handles these as such.

Comments

steel-track created an issue. See original summary.

steel-track’s picture

StatusFileSize
new1.76 KB
steel-track’s picture

StatusFileSize
new2.08 KB

Missed something for the patch. This is the correct one.

fabianderijk’s picture

Status: Active » Fixed

Thanks for the patch. I've just applied it and committed the fix. I will release a new version of the module ASAP.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.