#191 — Topic listing contains broken links to indvidual topics (keywords)

by Jan Hackel last modified May 04, 2009 01:01 PM
State Resolved
Version: 1.7
Area User interface
Issue type Bug
Severity Medium
Submitted by Jan Hackel
Submitted on May 04, 2009
Responsible Jan Hackel
Target release: 1.7
The topic_listing view should list all the topics (keywords) used by a blog. The links generated lack the "topic" infix, i.e. are broken.
Steps to reproduce:
- Create a blog, publish a post with a a keyword set.
- Click the tag cloud portlet's heading or append @@topic_listing to the blog's URL. The topic listing will appear.
- click a topic
Added by Jan Hackel on May 04, 2009 11:14 AM
Issue state: UnconfirmedConfirmed
This turns out to be a nasty one. The 'topic_listing' view silently assumes to be in the virtual 'topics' container of the weblog. It renders URLs relative to it's context. Normally this is something like 'http://nohost/plone/weblog/topics/aTopic'. When this view is applied to a weblog -- which is perfectly legal as a weblog is a ITopicContainer -- the view will break.

This ill behavior applies to the author and archive view as well. With the latter this is not apparent as it has no traversal prefix set.

I think the most sensible solution would be to ask the absolute URL from the topic. There is no such method defined, though.
Added by Jan Hackel on May 04, 2009 01:01 PM
Issue state: ConfirmedResolved
Test and fix now at rev. 85392 (http://dev.plone.org/collective/changeset/85392).

No responses can be added.