Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
7.2k
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!6551
Issue 3420768: base_url ignored in UnroutedUrlAssembler
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue 3420768: base_url ignored in UnroutedUrlAssembler
issue/drupal-3420768:3420768-baseurl-used-in
into
10.2.x
Overview
0
Commits
1
Pipelines
1
Changes
2
Open
Alec Smrekar
requested to merge
issue/drupal-3420768:3420768-baseurl-used-in
into
10.2.x
10 months ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
Closes
#3420768
👍
0
👎
0
Merge request reports
Compare
10.2.x
10.2.x (HEAD)
and
latest version
latest version
80f52b5a
1 commit,
10 months ago
2 files
+
7
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
core/lib/Drupal/Core/Utility/UnroutedUrlAssembler.php
+
6
−
1
Options
@@ -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