Table of contents

Edit an existing route in the Router

If there’s a need to edit a Route in the database, follow these instructions:

$ ssh router-backend-1.router.production
$ govuk_app_console router-api
> r = Route.where(incoming_path: '/path-to-item').first

manipulate the r object directly (see the documentation for available options), eg:

> r.route_type = 'exact'
> r.save!

once you’ve edited the Route appropriately and saved it, you need to reload the router:

> RouterReloader.reload
This page is owned by #2ndline and needs to be reviewed