Legacy Knowledge Base
Published Jul. 2, 2025

Page version control information is accessible in sitemap.xml

Written By

József Géczi

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

Page version control information is accessible in sitemap.xml - such information shall not be exposed for security reasons.

Reproduction:

1) Start up bundle
2) Access sitemap (e.g. http://localhost:8080/sitemap.xml)
3) From the site map, open one of the URLs within <loc> (e.g. http://localhost:8080/sitemap.xml?p_l_id=20145&layoutUuid=77a078ea-332d-a5bf-f850-9488bfa9b462&groupId=20142&privateLayout=false)

Actual behavior:

Page version control information (just like timestamps - which show change frequency and last modification date/time) are accessible at sitemap.xml by a single URL call.

In a vanilla DXP 7.0 example:

http://localhost:8080/zh2020-02-06T16:12:50+00:00daily
http://localhost:8080/es2020-02-06T16:12:50+00:00daily
http://localhost:8080/iw2020-02-06T16:12:50+00:00daily
http://localhost:8080/ja2020-02-06T16:12:50+00:00daily
http://localhost:8080/ca2020-02-06T16:12:50+00:00daily
http://localhost:8080/nl2020-02-06T16:12:50+00:00daily
http://localhost:8080/fi2020-02-06T16:12:50+00:00daily
http://localhost:8080/hu2020-02-06T16:12:50+00:00daily
http://localhost:8080/fr2020-02-06T16:12:50+00:00daily
http://localhost:80802020-02-06T16:12:50+00:00daily
http://localhost:8080/pt2020-02-06T16:12:50+00:00daily
http://localhost:8080/de2020-02-06T16:12:50+00:00daily

 

Environment

  • DXP 7.0

Resolution

The displayed date information in sitemap.xml is indeed part of the Sitemap specification and is applied to support SEO. 

Additional information can be found about the behavior in Google's documentation:
https://support.google.com/webmasters/answer/156184
https://support.google.com/webmasters/answer/183668

Such functionality is responsible for telling the search engine when each posts were updated last time, therefore helps in Search Engine Optimization. When a date changes in the sitemap, the search engine knows there is new content available to crawl and index. 

Did this article resolve your issue ?

Legacy Knowledge Base