Skip to content
Snippets Groups Projects

Issue 3420768: Unrouted Url assember base_url fix

Open Alec Smrekar requested to merge issue/drupal-3420768:3420768 into 11.x
4 unresolved threads
Files
5
@@ -135,7 +135,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'], '/') . '/';
}
if (isset($options['https'])) {
if (!empty($options['https'])) {
$base = str_replace('http://', 'https://', $current_base_url);
Loading