Let Url::fromUserInput resolve the path

Created on 17 November 2020, over 3 years ago
Updated 5 April 2024, 3 months ago

Problem/Motivation

I have set a drupal project in a local path, the front_page module resolve/redirect a wrong URL when I try to access the front /

Steps to reproduce

With the module installed access to the front page.

Access: localhost/my/custom/drupal/path/web
Redirect to: /my/custom/drupal/path/web/my/custom/drupal/path/web/user

Proposed resolution

The solution is quite easy, let Url::fromUserInput method resolve this path on FrontPageSubscriber eventSuscriber.

So no matter the way that you are running your drupal with a preconfigured host or using a path, the front_page will resolve the URL as expected.

πŸ› Bug report
Status

Closed: duplicate

Version

10.0

Component

Code

Created by

πŸ‡¦πŸ‡·Argentina Zarpele

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.69.0 2024