google returns links to code.launchpad.net/bugs/NNN

Bug #869609 reported by Martin Pool
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Curtis Hovey

Bug Description

Google seems to be returning URLs like <https://code.launchpad.net/bugs/862719> in its search results, duplicated with the actual page for that bug. That page doesn't actually exist - it's just a redirect to the real bug page <https://bugs.launchpad.net/bugs/862719> and always will be.

(Obviously Google can fix this too but the fact it's happening suggests we're publishing something not quite right.)

At the moment lp returns a 303; it should probably give a 301 'moved permanently' instead or 302 'found'.

Related branches

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

Well, actually, it's returning a redirect to one particular bug context:

< HTTP/1.1 303 See Other
< Date: Thu, 06 Oct 2011 23:37:18 GMT
< Server: zope.server.http (HTTP)
< X-Powered-By: Zope (www.zope.org), Python (www.python.org)
< X-Content-Type-Warning: guessed from content
< Content-Length: 0
< Location: https://bugs.launchpad.net/unity/+bug/862719
< Vary: Cookie,Authorization,Accept-Encoding
< Content-Type: text/plain;charset=utf-8
< X-Cache: MISS from nutmeg.canonical.com
< X-Cache-Lookup: MISS from nutmeg.canonical.com:3128
< Via: 1.0 nutmeg.canonical.com:3128 (squid/2.7.STABLE7)
< Via: 1.1 wildcard.launchpad.net

and that can change over time. But it's still not quite right.

description: updated
Revision history for this message
Curtis Hovey (sinzui) wrote :

I think this is caused defect is in the templates in lp.code. I reported a related issue a year or two ago that branch pages were making insane links to bugs on the code domain. The template/view was not passing the rootsite. I know fixes were landed. There are probably other cases where:
    path/bug/fmt:link
should be
    path/bug/fmt:link:bugs

tags: added: branches trivial
Revision history for this message
Curtis Hovey (sinzui) wrote :

There are four offending lines in code that all take the form of
    bugtask/fmt:link
But should be
    bugtask/fmt:link:bugs

The template is also used for blueprints; the specification urls are also pointing to the wrong vhost.

Curtis Hovey (sinzui)
Changed in launchpad:
assignee: nobody → Curtis Hovey (sinzui)
status: Triaged → In Progress
Curtis Hovey (sinzui)
Changed in launchpad:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.