alphagov/frontend — pull request #37 by daibach (2012-09-26 10:36:14+00:00)
Title: Remove 302 redirects from parted publications

Currently, when a user visits '/guide' they encounter a 302 redirect to '/guide/the-first-part'. This is behaviour is undesirable in a number of scenarios:

* When redirecting Directgov / BusinessLink content to a guide, the user will experience a 301 redirect to '/guide', followed by a 302 redirect to '/guide/the-first-part'. This is likely to leak SEO juice so we should reduce the number of redirects happening. This redirect is also responsible for guide 301 redirects being marked as a failure in the transition team's redirector
* When producing the backup flat site, wget requests '/guide', sees a 302 redirect to '/guide/the-first-part', follows it and saves the content at '/guide'. When it then wgets '/guide/the-first-part', it thinks it has already seen this URL so doesn't create a new page, breaking links in the content.

This pull request removes this behaviour from parted publications (guides, benefits etc).

The downside of this work is that we will have the same content shown on multiple URLs (i.e. '/guide' and '/guide/the-first-part'). This pull request tries to combat this by introducing `` to guide parts.

Note: This change does break business support content, however we don't currently have any content of this type yet and there is a story in the mainstream backlog to fix this.