Dynamic Pages - I don't think Bubble can do this

I just told you.

The slug becomes part of the URL, and on page load you set the source as from the URL.

Here’s the example from my own app I was talking about: https://www.knowthydrink.com/recipe/ - search for ‘mai tai’, ‘manhattan’, ‘margarita’ (there’s not many more right now but those will suffice) - each one of them then loads on the same page, with a working URL that reads:
https://www.knowthydrink.com/recipe/mai-tai
https://www.knowthydrink.com/recipe/manhattan
https://www.knowthydrink.com/recipe/margarita

I did not create those 3 pages, they’re dynamic based on the recipe’s slug, which can be auto-created at the time a recipe is created.

Hi there - I understand all of that, but how do I literally create the action, so that the user is taken to a vendor page.

see my vendor tiles here:

When you click ‘Mai tai’, it takes you to the page - what do I literally need to input into my website to make the same thing happen from the vendor tiles to their individual vendor profiles

Really desperate if anyone can help guys - It’s definitely a 2 minute fix but I just need an answer.

Need that clever person to tell me what I’m doing

https://vimeo.com/835738222/62ae73a95f

So on the page /recipe/, I set the page to Type: Recipe. In my workflow, I have a ‘On Page Load’ → “Go to Page” and then destination = “recipe”, Data to send = “Get path from Page URL”, which is marked as “Path” / “URL” (this is where you choose whether it’s a Path, i.e. /recipe/mai-tai, vs Parameter, i.e. recipe?recipename=Mai%20Tai - you will want Path).

In my database, under my data type Recipe, everytime a recipe is created, I have it ‘set a thing’s slug’. “thing to change” = ‘result of step # (create a new recipe)’. I then can play around with how to treat spaces, symbol truncation, etc. So if the Recipe Name was ‘Mai Tai’ it will become a slug of ‘mai-tai’.

Now in the future as hundreds if not thousands of recipes are created, either by myself or by other users, I just have the one page (/recipe) and the slug takes care of the rest.

I think that makes sense. Unfortunately that’s no good for me as we need SEO driven results.

Unless I’m mistaken that method doesn’ t creat the link heirachy required, as google can only follow links, and not workflows with ‘go to’

Yes good note @NigelG

@james34 Under your app Settings → SEO / Metatags, you can allow Google to view a dynamic sitemap

Here is the sitemap in the manual:

Expose a sitemap file

> Check this box to select pages to add to the sitemap. When checked, the page names display, allowing you to select the specific pages to include. If the page contains dynamic content (i.e. pages that have a specific type of content), then we will also include those dynamic pages in the sitemap.

1 Like

Hey Nigel!

This made a lot of sense, thanks so much for this. I can definitely see how it could create a bit of chaos with duplicate content and lower scores.

I’m really sorry to bother, but I have to grovel to someone more knowledgable than me, but do you know the issue I’m having on this post? It’s more basic, and only involves just the dynamic pages for our vendors:

Appreciate I’m being cheeky, but you seem to understand the challenges!

1 Like