Custom URLs for SEO

Hey team, I’m trying to make an app similar to classpass that will allow users to be able to find and review gyms. For SEO reasons, I’d like to have a static URL for the search results page but I’m not sure how I can do this yet in Bubble. As an example, I’d like to achieve something like this:

In my app though I haven’t been able to achieve anything like that, only finding results by passing params like so:

Please ignore that the page doesn’t show any results, I’ve broken it trying to get the URL sorted haha. Is it possible for me to be able to create a static URL structure like this in my search results page in Bubble?

Thanks for any and all help!

You can use path parameters instead of query parameters in your URLs

You can can use get data from URL, path segments as list, to separate the path segments, then refer to the item number in your data sources on the page.

For example if your URL is www.myapp/search-results/boxing/brighton

The first item would be the page ‘search-results’
The second item is the style ‘boxing’
And the third item is the location ‘brighton’

To get the style use get data from URL: segment path as list: item#2
To get the location use get data from URL: segment path as list: item#3

Thanks Adam, that looks like exactly what I wanted :slight_smile: Will give that a try now

1 Like