﻿ticket	summary	type	release	owner	status	created	modified	_description	_reporter
8790	wrong url in sitemap for tickets: prefix duplicate	defect	0.12	Martin Scharrer	new	2011-05-12T12:04:07+02:00	2012-03-23T18:54:06+01:00	"my trac available on example.com/trac

for tickets plugin generate url:
http://example.com/trac/trac/ticket/1

""trac"" twice

here the patch.

{{{
--- tracgooglesitemap/plugin.py (revision 10162)
+++ tracgooglesitemap/plugin.py (working copy)
@@ -103,7 +103,7 @@
                   ""SELECT id,changetime FROM ticket""
               )
               urls.append( [ tag.url(
-                              tag.loc( req.base_url + req.href.ticket(ticketid) ),
+                              tag.loc( self.env.abs_href.ticket(ticketid) ),
                               tag.lastmod( self._fixtime(format_datetime (changetime,'iso8601')) )
                         ) for n,[ticketid,changetime] in enumerate(cursor) ] )
 
}}}"	Boris Savelev
8485	[PATCH] Some improvements to GoogleSitemapPlugin	enhancement	0.11	Martin Scharrer	assigned	2011-02-09T12:23:02+01:00	2023-03-11T20:48:46+01:00	"I am attaching a patch with some improvements to GoogleSitemapPlugin:
 * check if user accessing sitemap.xml has permissions to access given resources (we do not want to leak to Google (or others) information about internal/hidden pages)
 * if Trac component is disabled in configuration GoogleSitemapPlugin should not issue entries for it
 * added entries for ContactFormPlugin and FullBlogPlugin (this should probably be implemented through extension point in the future)
 * added many other entries (realms): milestones, reports, attachments...
 * added prioritization of entries, so for example you can configure GoogleSitemapPlugin to prioritize top-level wiki pages (like section pages)
"	Mitar
