Modify

Opened 7 years ago

Closed 4 years ago

#1544 closed defect (wontfix)

GoogleSitemapPlugin doesn't provide full URLs.

Reported by: darwinscusp@… Owned by: martin_s
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 7 years ago by max@…

I have the same problem. Looking at your http://www.ooth.org/sitemap.xml there's a base URL tho. What was your solution ?

comment:2 Changed 7 years ago by darwinscusp@…

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 7 years ago by anonymous

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 4 years ago by martin_s

  • Owner changed from datenimperator to martin_s
  • Status changed from new to assigned

comment:5 Changed 4 years ago by martin_s

  • Resolution set to wontfix
  • Status changed from assigned to closed

The version for Trac 0.10 is abandoned. Please use the new version for Trac 0.11.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.