- Issue created by @timurtripp
- Merge request !108Issue #3465080: Path field prefix on sites which are not at the root of the domain is incorrect β (Open) created by Unnamed author
- Status changed to Needs review
5 months ago 8:55pm 31 July 2024
If a site is deployed as a subdirectory such as example.com/my-drupal-site
, the Path field will be incorrectly prefixed with https://example.com/
instead of the correct https://example.com/my-drupal-site/
.
Deploy a Drupal site in a subdirectory (not at the root of the domain) and create or edit a URL redirect entity.
In RedirectSourceWidget.php
, replace \Drupal::request()->getSchemeAndHttpHost() . '/'
with Url::fromUri('internal:/', ['absolute' => TRUE])
or \Drupal::service('router.request_context')->getCompleteBaseUrl() . '/'
Needs review
1.0
User interface