Invalid paths are not correctly handled

Created on 24 June 2021, over 3 years ago
Updated 15 March 2023, almost 2 years ago

Problem/Motivation

When navigating to an invalid path, this module does not catch the resulting Exception from getting the alias.
See the related issues where this bug was (possibly) introduced: https://www.drupal.org/node/2810961

Steps to reproduce

Have a setup where this module will be active
Navigate to https://yoursite.com/index.phpsometext

Proposed resolution

Catch the Exception, return NULL and catch the NULL further down the line.

Remaining tasks

Review and apply patch.

User interface changes

None

API changes

None

Data model changes

Small change in the return function for createUrlFromRelativeUri()

🐛 Bug report
Status

Closed: outdated

Version

1.3

Component

Code

Created by

🇧🇪Belgium weseze

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