[MGNLGS-21] <loc> is incomplete for VirtualUriComponent Created: 25/Oct/13  Updated: 15/Mar/21  Resolved: 15/Mar/21

Status: Closed
Project: Google Sitemap (closed)
Component/s: None
Affects Version/s: 1.2.2
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Philipp Denzler Assignee: Unassigned
Resolution: Obsolete Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File SiteMapService.java.patch    
Template:
Patch included:
Yes
Acceptance criteria:
Empty

 Description   

When using the VirtualUriComponent to create the Sitemap, the <loc> is only the relative path from the site root and does NOT contain the full address of the page.

According to http://www.sitemaps.org/protocol.html#locdef it should be the full URL and https://support.google.com/webmasters/answer/183668?hl=en&ref_topic=8476 states that 'You must fully specify URLs, as Google attempts to crawl them exactly as provided.'



 Comments   
Comment by Philipp Denzler [ 25/Oct/13 ]

Attached a fix which reads the defaultBaseUrl from the config repository.

Generated at Mon Feb 12 02:05:40 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.