Define a way to request a rootsite with fmt:url
Bug #84022 reported by
Francis J. Lacoste
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Low
|
Unassigned |
Bug Description
On the frontpage of distrorelease, I want to generate a link to the +addticket view of the distribution object. That view should be accessed using the 'Answers' rootsite. string:
Maybe the requested rootsite could be passed as an additional path argument?
Related branches
lp:~sinzui/launchpad/pillar-person-links-bug-372925
Merged
into
lp:launchpad
- Gary Poster (community): Approve (code)
- Diff: None lines
Changed in launchpad: | |
assignee: | Curtis Hovey (sinzui) → nobody |
To post a comment you must log in.
Related to this, it would be nice to be able to pass in a rootsite to canonical_url().
One question is what behaviour we should have if the object in question has a rootsite specified? The three options I can think of are:
1. ignore the passed rootsite and use the object's rootsite
2. ignore the object's rootsite and use the passed rootsite
3. raise an exception
(2) could be bad if we have different traversal for different domains, since it might generate a bad URL. So I'd lean towards (3).