redirects should canonicalise URLs
Bug #5461 reported by
Dafydd Harries
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Medium
|
James Henstridge |
Bug Description
class DistributionNav
redirection
...
/distros/
/distros/
Steve suggested redirection(
Changed in launchpad: | |
assignee: | nobody → stevea |
status: | New → Accepted |
Changed in launchpad: | |
assignee: | stevea → jamesh |
To post a comment you must log in.
It is now possible to calculate the redirect target in the navigation class with the following idiom:
@redirection( '+source' , status=301) source( self): url(self. context)
def redirect_
return canonical_
(I included the status code here to indicate a permanent redirect)