#111 — /archive/ hardcoded into weblog archive urls
by
Tom Lazar
—
last modified
Jan 08, 2009 04:02 PM
| State | Resolved |
|---|---|
| Version: | 1.6 |
| Area | Functionality |
| Issue type | Bug |
| Severity | Important |
| Submitted by | Tom Lazar |
| Submitted on | Sep 23, 2007 |
| Responsible | Tim Hicks |
| Target release: | 1.6 |
by default the weblog_archive format is '', i.e. to reach the archive don't append anything to the blog's URL, go straight for the year:
/blog/2007/
blog/2007/09/ etc.
in those views the instantiated (year/month/day) archives have a correct absolute_url (which is used to create their clickable links) of /blog/2007 etc
this is, because we already specified the proper context via the /blog/2007 url
if, however we instantiate the archive without that specific context, i.e. in the archive portlet all of those archive objects get an absolute url of /blog/archive/2007 etc. (which leads to 404s)
ideally, the absolute_url methods of the archive's would take that configuration setting into account.
as temporary workaround i will set the default archive_format from '' to 'archive'. this way new installations' archive urls will always coincide with each other and there will be no nasty 404s.
/blog/2007/
blog/2007/09/ etc.
in those views the instantiated (year/month/day) archives have a correct absolute_url (which is used to create their clickable links) of /blog/2007 etc
this is, because we already specified the proper context via the /blog/2007 url
if, however we instantiate the archive without that specific context, i.e. in the archive portlet all of those archive objects get an absolute url of /blog/archive/2007 etc. (which leads to 404s)
ideally, the absolute_url methods of the archive's would take that configuration setting into account.
as temporary workaround i will set the default archive_format from '' to 'archive'. this way new installations' archive urls will always coincide with each other and there will be no nasty 404s.
- Steps to reproduce:
- * publish an entry
* click on its months entry in the archive portlet
Added by
Tim Hicks
on
Sep 24, 2007 03:37 PM
Fixed in revisions 50065-50068.
Issue state:
unconfirmed
→
resolved
No responses can be added.
If you can, please log in before submitting a reaction.
