Skip to content
Snippets Groups Projects

Issue 3420768: base_url ignored in UnroutedUrlAssembler

Open Alec Smrekar requested to merge issue/drupal-3420768:3420768-baseurl-used-in into 10.2.x
2 files
+ 7
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -131,7 +131,12 @@ protected function buildLocalUrl($uri, array $options = [], $collect_bubbleable_
$current_base_path = $request->getBasePath() . '/';
if ($options['absolute']) {
$current_base_url = $request->getSchemeAndHttpHost() . $current_base_path;
if (empty($options['base_url'])) {
$current_base_url = $request->getSchemeAndHttpHost() . $current_base_path;
}
else {
$current_base_url = rtrim($options['base_url'], '/') . $current_base_path;
}
if (isset($options['https'])) {
if (!empty($options['https'])) {
$base = str_replace('http://', 'https://', $current_base_url);
Loading