Skip to main content
Table of contents

Publishing

Change a specialist document base path

In Specialist Publisher, the base path is automatically generated based on the title when the specialist 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.

You can use the Jenkins rake task runner to run the task:

base_path:edit[content_id,/new_base_path]

You can find the content_id 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:

local$      govukcli set-context production
local$      govukcli ssh backend

production$ govuk_app_console specialist-publisher

rails$      Document.find('content_id-of-the-document').publish
This page was last reviewed on 20 August 2019. It needs to be reviewed again on 20 November 2019 by the page owner #govuk-2ndline .
This page was set to be reviewed before 20 November 2019 by the page owner #govuk-2ndline. This might mean the content is out of date.