Table of contents

Redirect a Whitehall asset URL

When a Whitehall asset e.g. a PDF attachment is updated Whitehall currently doesn’t redirect the old asset URL. Even if the filename stays the same the id within the URL changes.

Whilst the content on the site will have the new URL, some content will have been linked from external sites and will start to return 404s.

To redirect these, create a Redirect content item for them in publishing API. This can be done from Whitehall as per this PR.

This page was last reviewed . It needs to be reviewed again by the page owner #govuk-2ndline.