Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xmlsitemap
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
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
xmlsitemap
Merge requests
!29
3367705-http-to-https
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
3367705-http-to-https
issue/xmlsitemap-3367705:3367705-using-http-protocol
into
8.x-1.x
Overview
0
Commits
1
Pipelines
0
Changes
2
Open
Pau Calabres Garcia-Carpintero
requested to merge
issue/xmlsitemap-3367705:3367705-using-http-protocol
into
8.x-1.x
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
Closes
#3367705
0
0
Merge request reports
Compare
8.x-1.x
8.x-1.x (HEAD)
and
latest version
latest version
4697b62d
1 commit,
2 years ago
2 files
+
6
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/XmlSitemapWriter.php
+
5
−
5
Options
@@ -148,17 +148,17 @@ class XmlSitemapWriter extends \XMLWriter {
* Returns root attributes.
*/
public
function
getRootAttributes
()
{
$attributes
[
'xmlns'
]
=
'http://www.sitemaps.org/schemas/sitemap/0.9'
;
$attributes
[
'xmlns'
]
=
'http
s
://www.sitemaps.org/schemas/sitemap/0.9'
;
// @todo Should content_moderation implement hook_xmlsitemap_root_attributes_alter() instead?
$attributes
[
'xmlns:xhtml'
]
=
'http://www.w3.org/1999/xhtml'
;
if
(
\Drupal
::
state
()
->
get
(
'xmlsitemap_developer_mode'
))
{
$attributes
[
'xmlns:xsi'
]
=
'http://www.w3.org/2001/XMLSchema-instance'
;
$attributes
[
'xsi:schemaLocation'
]
=
'http://www.sitemaps.org/schemas/sitemap/0.9'
;
$attributes
[
'xmlns:xsi'
]
=
'http
s
://www.w3.org/2001/XMLSchema-instance'
;
$attributes
[
'xsi:schemaLocation'
]
=
'http
s
://www.sitemaps.org/schemas/sitemap/0.9'
;
if
(
$this
->
isIndex
())
{
$attributes
[
'xsi:schemaLocation'
]
.
=
' http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd'
;
$attributes
[
'xsi:schemaLocation'
]
.
=
' http
s
://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd'
;
}
else
{
$attributes
[
'xsi:schemaLocation'
]
.
=
' http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd'
;
$attributes
[
'xsi:schemaLocation'
]
.
=
' http
s
://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd'
;
}
}
Loading