Breaks with double slash path ("//")

Created on 17 August 2022, about 2 years ago
Updated 27 September 2023, about 1 year ago

Problem/Motivation

Throws an exception when you go to "//" (e.g. https://www.yoursite.com//)

 in Drupal\path_alias\AliasManager::getAliasByPath called at /code/web/core/modules/system/src/Plugin/Condition/RequestPath.php (154)
 in Drupal\system\Plugin\Condition\RequestPath::evaluate called at /code/web/modules/contrib/ape/src/EventSubscriber/ApeSubscriber.php (97)
 in Drupal\ape\EventSubscriber\ApeSubscriber::onRespond called at ? (?)

Proposed resolution

Open for suggestions: maybe it should be on a systems level and there should we a URL rewriting from // to /. It feels buggy though and it could just help to have a check in the subscriber

Remaining tasks

- [ ] Provide a patch

🐛 Bug report
Status

Needs review

Version

1.5

Component

Code

Created by

miiimooo Europe

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