- Issue created by @Nathan Tsai
- @nathan-tsai opened merge request.
- @nathan-tsai opened merge request.
- Status changed to Fixed
over 1 year ago 4:41pm 10 July 2023 Automatically closed - issue fixed for 2 weeks with no activity.
We're currently using $this->requestStack->getCurrentRequest()->getSchemeAndHttpHost()
to get the base url of the site. This returns the incorrect base URL when there is a subdirectory (or when using a language).
Use \Drupal::urlGenerator()->generateFromRoute('<front>', [], ['absolute' => TRUE])
instead.
Fixed
2.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.