---
title: Advanced Paths
description: The Advanced Paths app builds programmable preview paths for folders and stories using Squirrelly templates.
url: https://www.storyblok.com/docs/apps/advanced-paths
---

# Advanced Paths

The Advanced Paths app builds the preview path (the real path) of a folder or story from a [Squirrelly v8](https://squirrelly.js.org/) template rather than a fixed string. Use it when root-level folders point at different preview domains, when a language needs its own domain, when the URL uses a different separator, or when a folder is virtual.

## Features

-   Build preview paths from a Squirrelly v8 template.
-   Read the story object, the folder object, the language code, the branch ID, and the environment location and name inside the template.
-   Resolve translated slugs through a helper function.
-   Vary the preview URL per language and per environment.

## Setup

In the **Content** section, select a folder or story and open **Settings** from the toolbar to configure its real path. For a story, the **Config** section of the Visual Editor offers the same setting.

After installing the app, configure the preview path of each folder.

## Further resources

[Set an advanced path based on translated slugs](https://www.storyblok.com/faq/how-to-set-an-advanced-path-based-on-translated-slugs)

[Migrate from Squirrelly 7 to Squirrelly 8](https://www.storyblok.com/faq/how-to-migrate-from-squirrelly-7-to-squirrelly-8)

[Advanced Paths in the app directory](https://www.storyblok.com/apps/advanced-paths)

## Pagination

-   [Previous: Activities](/docs/apps/activities)
-   [Next: AI SEO](/docs/apps/ai-seo)
