What Is a Slug? (And Why It Matters)

Screenshot showing a content management system interface with a webpage draft titled "What is a Slug?" and a configuration panel on the right.

A slug is the part of a URL that comes after the main domain and identifies a specific page.

Example:
https://www.yourwebsite.com/products/running-shoes

In this URL, running-shoes is the slug.

Table of Content

  1. Why Slugs Are Important

  2. Best Practices for Writing Slugs

  3. Structure of URLs in Storyblok

  4. Important: Be Careful When Editing Slugs

  5. Before Publishing a Page

  6. AI Prompts to Check or Generate a Slug

  • The slug can be defined either when creating a new page or later within the page’s “Config” settings.

Why Slugs Are Important

As a Content Editor, the slug you choose has a direct impact on:

  • Search Engine Optimization (SEO) – Search engines use the slug to understand what the page is about.

  • User Experience – Clear slugs help users understand where they are on the website.

  • Link Sharing – Clean, readable URLs look more professional and trustworthy.

  • Brand Perception – As a premium brand, we maintain high standards — this includes our URLs.

Best Practices for Writing Slugs

Keep it clear and concise
Use a maximum of 50 characters, including hyphens. Shorten or rephrase without cutting words off.

Reflect the page’s content and language
Include the main topic, relevant location, and essential details that distinguish the page. For property pages, this will often be property type + location.

Example: townhouse-frankfurt-westend

Use lowercase words separated by single hyphens
Do not use spaces, underscores, or hyphens at the beginning or end.

Example: commercial-property-stuttgart

Choose relevant keywords
Use words that clearly describe the page and match what readers are looking for. Avoid adding information that the page does not contain.

Remove words that add no essential meaning
Leave out unnecessary words such as “the,” “and,” or “our,” and promotional wording such as “exclusive” or “amazing.” Keep words needed to preserve meaning, proper names, or natural word formation in the page’s language.

Structure of URLs in Storyblok

The slug of the folder your page is nested in, will be part of the URL.

Example:
The Agent Recruiting Form is nested in the folder "agents" and their slug is set for "become-real-estate-agent". So you do not need to repeat the keyword real estate agent, just name form "apply".

Important: Be Careful When Editing Slugs

Changing the slug of a published property page can:

  • Break existing links

  • Negatively impact SEO rankings

  • Affect ongoing marketing campaigns

  • Disrupt paid ads or external listings

Only change slugs if absolutely necessary — and always align with the website administrators before doing so.

Before Publishing a Page

Ask yourself:

  • Does the slug clearly describe the property or location?

  • Does it follow the structure: property-type + location?

  • Is it short and clean?

  • Does it look professional in a shared link?

AI Prompts to Check or Generate a Slug

Use these AI prompts to review an existing slug or create one for a new page:

  • Check a slug: Check its wording, formatting, and length, and get a suggested correction if needed.

  • Generate a slug: Create a suggested slug from your page content, using a page URL or document.

Open the prompt, copy it into your AI assistant, and replace the placeholder with your slug or page source. Review the suggestion before using it.