Table of contents

Check for a `gone` route

This page was imported from the opsmanual on GitHub Enterprise. It hasn’t been reviewed for accuracy yet. View history in old opsmanual

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

Check the router API for a gone route

$ ssh router-backend-1.router.production
$ cd /var/apps/router-api
$ sudo -u deploy govuk_setenv router-api bundle exec rails c
> 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 is owned by #2ndline and needs to be reviewed