Merge lp://qastaging/~mbp/launchpad/808282-canonical-url into lp://qastaging/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://qastaging/~mbp/launchpad/808282-canonical-url
Merge into: lp://qastaging/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://qastaging/~mbp/launchpad/808282-canonical-url
Reviewer Review Type Date Requested Status
Paul Sladen (community) Approve
Benji York (community) code Approve
Review via email: mp+82811@code.qastaging.launchpad.net

Commit message

[r=benji,sladen] [r=benji][bug=808282] add recommended_canonical_url, feeding <link rel=canonical>

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.
Revision history for this message
Benji York (benji) wrote :

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.

review: Approve (code)
Revision history for this message
Martin Pool (mbp) wrote :

On 22 November 2011 01:55, Benji York <email address hidden> wrote:
> Review: Approve code
>
> This looks good.
>
> I would have been tempted to call the method canonical_canonical_url.

Are you serious? Or did you mean recommended_canonical_url, which
could be good.

>
> 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.

shure doesh

--
Martin

Revision history for this message
Paul Sladen (sladen) wrote :

Looks excellent.

What's the thinking these days between promoting the following?:

  a. bugs.launchpad.net/…
  b. launchpad.net/bugs/

(the first is sent out in emails, but the latter is shorter and avoids the duplication). Looking at the returned 'Location:' headers, both entry points return http://bugs.launchpad.net/context/… in a single step.

review: Approve
Revision history for this message
Martin Pool (mbp) wrote :

On 23 November 2011 11:04, Paul Sladen <email address hidden> wrote:
> Review: Approve
>
> Looks excellent.
>
> What's the thinking these days between promoting the following?:
>
>  a. bugs.launchpad.net/…
>  b. launchpad.net/bugs/

I believe the plan is to eventually reunify everything on to a single
domain. There has been some launchpad-dev discussion. It is not a
top priority though.

--
Martin

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.