Slug as directories? Path or something like that?

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, to build the slug as 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 be instead domain.com/search/city_name or even domain.com/city_name?

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

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 and you can read the slug using Get data from page URL in search page and do your stuff.

1 Like