Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
simple_sitemap
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
3
Merge Requests
3
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
simple_sitemap
Commits
30ff8389
Commit
30ff8389
authored
Jun 11, 2019
by
gbyte
Committed by
Pawel G
Jun 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3060971
by satrece, gbyte.co: Custom base URL does not work for generated images
parent
f894f72f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/Plugin/simple_sitemap/UrlGenerator/EntityUrlGeneratorBase.php
...in/simple_sitemap/UrlGenerator/EntityUrlGeneratorBase.php
+3
-1
No files found.
src/Plugin/simple_sitemap/UrlGenerator/EntityUrlGeneratorBase.php
View file @
30ff8389
...
...
@@ -215,7 +215,9 @@ abstract class EntityUrlGeneratorBase extends UrlGeneratorBase {
if
(
$field
->
getType
()
===
'image'
)
{
foreach
(
$entity
->
get
(
$field
->
getName
())
->
getValue
()
as
$value
)
{
$image_data
[]
=
[
'path'
=>
file_create_url
(
File
::
load
(
$value
[
'target_id'
])
->
getFileUri
()),
'path'
=>
$this
->
replaceBaseUrlWithCustom
(
file_create_url
(
File
::
load
(
$value
[
'target_id'
])
->
getFileUri
())
),
'alt'
=>
$value
[
'alt'
],
'title'
=>
$value
[
'title'
],
]
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment