Opened 18 years ago
Closed 15 years ago
#1544 closed defect (wontfix)
GoogleSitemapPlugin doesn't provide full URLs.
Reported by: | Owned by: | Martin Scharrer | |
---|---|---|---|
Priority: | normal | Component: | GoogleSitemapPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
This is probably a configuration problem on my part, but I can't seem to figure out the solution. All of my sitemap locations do not contain the base URL. Example is available at http://www.ooth.org/sitemap.xml.
Is this a config issue? I've specified "http://www.ooth.org" as the base url in the admin page.
Thanks,
darwinscusp
Attachments (0)
Change History (5)
comment:1 Changed 18 years ago by
comment:2 Changed 18 years ago by
I hacked the source to include the base url. I'd offer you a patch, but I just hard-coded it into "build/lib/sitemap/api.py"
at line 27, I added the following:
if (elementname == 'loc'):
content = 'http://www.ooth.org' + content
It's not the proper way to do it, but I didn't write the plugin :)
comment:3 Changed 17 years ago by
This bug is due to the use of "base_url" as storage name, this is used by trac already and will be overwritten with the default value "" if not set in your enviremont.
comment:4 Changed 15 years ago by
Owner: | changed from Christian Aust to Martin Scharrer |
---|---|
Status: | new → assigned |
comment:5 Changed 15 years ago by
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
The version for Trac 0.10 is abandoned. Please use the new version for Trac 0.11.
I have the same problem. Looking at your http://www.ooth.org/sitemap.xml there's a base URL tho. What was your solution ?