Merge lp://staging/~mbp/launchpad/808282-canonical-url into lp://staging/launchpad
Proposed by
Martin Pool
Status: | Merged |
---|---|
Approved by: | Martin Pool |
Approved revision: | no longer in the source branch. |
Merged at revision: | 14382 |
Proposed branch: | lp://staging/~mbp/launchpad/808282-canonical-url |
Merge into: | lp://staging/launchpad |
Diff against target: |
127 lines (+61/-4) 4 files modified
lib/canonical/launchpad/webapp/publisher.py (+24/-1) lib/lp/app/templates/base-layout.pt (+7/-3) lib/lp/bugs/browser/bugtask.py (+4/-0) lib/lp/bugs/browser/tests/test_bug_views.py (+26/-0) |
To merge this branch: | bzr merge lp://staging/~mbp/launchpad/808282-canonical-url |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Sladen (community) | Approve | ||
Benji York (community) | code | Approve | |
Review via email: mp+82811@code.staging.launchpad.net |
Commit message
[r=benji,sladen] [r=benji][bug=808282] add recommended_
Description of the change
Per discussion in bug 808282, it's possible Launchpad can help search engines give better results by sending <link rel=canonical> on bug pages. This adds a general mechanism for doing this and does it on bug pages.
To post a comment you must log in.
This looks good.
I would have been tempted to call the method canonical_ canonical_ url.
The comment in the test doesn't quite parse though:
# Hardcode this to avoid be sure we've really got what we expected.
Removing the word "avoid" sheems appropriate.