Table of contents

Check for a 'gone' route

When a Whitehall document fails to appear on the frontend, and the user is shown a ‘Gone’ page, follow these instructions:

Connect to a router-backend machine

$ govukcli ssh --context production router_backend

Check the router API for a gone route

$ govuk_app_console router-api
> r = Route.where(incoming_path: '/path-to-item').first
> puts r.handler

If the result is gone and you want to unblock the URL then you need to remove the route (this works because /government is a prefix route to Whitehall):

> r.destroy
> RouterReloader.reload
This page was last reviewed on 13 March 2019. It needs to be reviewed again on 13 September 2019 by the page owner #govuk-2ndline .
This page was set to be reviewed before 13 September 2019 by the page owner #govuk-2ndline. This might mean the content is out of date.