Skip to main content
Last updated: 10 Jul 2024

Change a specialist document base path

In Specialist Publisher, the base path is automatically generated based on the title when the document is first created. We sometimes receive Zendesk tickets to change a base path when the title has been updated, as the publisher does not have the ability to do this.

k exec deploy/specialist-publisher -- rake base_path:edit[content_id,locale,new_base_path]

You can find the content_id and locale of the document using the govuk-toolkit browser extension.

Note: the rake task will only change the slug for the latest draft (creating a new draft if necessary). For the change to be permanent, you need to publish the draft, which you can either do in the Specialist Publisher UI or by using the CLI:

$ gds govuk connect app-console -e production specialist-publisher
Document.find('content_id-of-the-document').publish