Designer API
Control the Webflow Designer
page.setSlug(slug)
Set the slug of the page.
1page.setSlug(slug: string): Promise<null>
string
Promise<null>
null
A promise that resolves to null.
1// Get Current Page2const currentPage = await webflow.getCurrentPage() as Page34// Set page Description5await currentPage.setSlug(slug)6const newSlug = await currentPage.getSlug()7console.log("Slug",newSlug)
Try this example