# Slug as directories? Path or something like that?

**URL:** <https://forum.bubble.io/t/slug-as-directories-path-or-something-like-that/268267>\
**Category:** App Organization\
**Created:** [June 17, 2023, 5:41pm UTC](https://forum.bubble.io/t/slug-as-directories-path-or-something-like-that/268267 "2023-06-17T17:41:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vitor370](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@vitor370](https://forum.bubble.io/u/vitor370)\
**Post date:** [June 17, 2023, 5:41pm UTC](https://forum.bubble.io/t/slug-as-directories-path-or-something-like-that/268267/1 "2023-06-17T17:41:05Z")

</div>

Hey guys, is there a way to set slugs as directories in the URL in Bubble?

For example, instead of **[domain.com/state\_code-city\_name-business\_name](http://domain.com/state_code-city_name-business_name)**, to build the slug as **[domain.com/State\_code/City\_name/Business\_name](http://domain.com/State_code/City_name/Business_name)**?

Or other example where we have an almost infinite dynamic results, in [domain.com/search?city=city\_name](http://domain.com/search?city=city_name) be instead [domain.com/search/city\_name](http://domain.com/search/city_name) or even [domain.com/city\_name](http://domain.com/city_name)?

---

<div class="post-metadata">

**Author:** ![alirafie5710](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@alirafie5710](https://forum.bubble.io/u/alirafie5710)\
**Post date:** [June 18, 2023, 8:37pm UTC](https://forum.bubble.io/t/slug-as-directories-path-or-something-like-that/268267/2 "2023-06-18T20:37:24Z")

</div>

> [@vitor370](#):
>
> For example, instead of **[domain.com/state\_code-city\_name-business\_name](http://domain.com/state_code-city_name-business_name)**, to build the slug as **[domain.com/State\_code/City\_name/Business\_name](http://domain.com/State_code/City_name/Business_name)**?

Not sure how to make a multi-level URL like that without a plugin, just using slugs; but about the

> [@vitor370](#):
>
> Or other example where we have an almost infinite dynamic results, in [domain.com/search?city=city\_name](http://domain.com/search?city=city_name) be instead [domain.com/search/city\_name](http://domain.com/search/city_name)

You can navigate to your search page, and in Data to Send section, simply enter your slug(dynamic city\_name or whatever) and ignore the error if bubble is showing, in case the Content Type of the destination page doesn’t match the type of your slug(which is a text). What will be opened in browser is [http://domain.com/search/city\_name](http://domain.com/search/city_name) and you can read the slug using Get data from page URL in search page and do your stuff.
