URL path hierarchy management

We have page that receives a type of product.
I was able to make the URL path like this:
www.mybubbleapp.com/product_name

But I want it to be under a category hierarchy, like this:
www.mybubbleapp.com/category_x/product_name

The category is connected to the product with another table in the DB and PK of the Uniq ID.

Will appreciate an advise.

Thanks

There’s a way to do it but it’s not clean unfortunately.

Basically instead of “go to page” actions you’re going to use external URL.

For this example I’m going to assume you have a repeating group of lists of products, each product has 1 or more categories and you’re going to a page called “product” which has a data type of “product”.

You’re going to do “Open an external website” action & the structure will look like this:

Which will result in this
https://domain.com/version-test/product/category/glass-pipes/12-gold-fume-water-pipe

Basically as long as the first path after domain is an actual bubble page & the last path is the product slug you can fill in any paths you want in between.

if bubble could just save us all some time and allow us to set nested paths inside the slug that would be great :sweat_smile:

2 Likes

Thanks @chris.williamson1996 !

I was able to make the URL the way I wanted.
But I get to an empty product page.

Looking at the current process, we are sending data to the product page.
Like this:
image

I wasn’t able to find a way to forward data this way.
Any idea how to manage this one?

The brackets are just added by Bubble’s new editor
image
It’s not affecting

1 Like

Make sure your data referencing on groups/elements is current page product

You can do this with go to page action. The page to navigate to can not have content type set. Data to send for go to page action is the path list.

I do this in my apps for speed (go to page action), SEO (path list) and multi language site (first item in path list after page name is language then the remainder of path list).

On the page I just have a group with data type as product and data source is search with constraint using get data from URL which looks at the appropriate path list item number. I can use the same search for SEO title, desc and structured data and it only performs the search once as Bubble support has confirmed for me.

3 Likes

Never even considered doing it without a page content type, genius! @boston85719

Do you know if this all translates over to search console and google scraping well? As in do they index it with
/category name/product name/etc as you’d expect?

Bubble uses the page content type & slugs to actually populate site map if I’m not mistaken. Just curious how google sees it.

I create my own sitemap. I store onto the data type a data field the URL for the specific entry (really I have one for each language, but could probably just do as a list field for multiple languages). I then export CSV, then use the CSV to create my sitemap file with Sublime Text.

Yes, I’ve got 100 out of 100 on 3 out of the 4 metrics that are in our control, unfortunately, Performance on my blog articles can’t get above 60, but varies and hovers in the mid 30s b/c of Bubble and my product pages are around 25-40.

Only thing that became tricky was multiple languages and the app primary language versus the users language since when I first set it up Google came to index but got redirected b/c of default language different from language of the URL, so now I just run the language off the URL path list item and ignore the Users language preference…but for single language app it is pretty straight forward.

I was really struggling with Bubbles’ lack of features and in hours worth of back and forth via email with support, an agent told me we can send data as text via the go to page workflow action if the page has no content type…with that little nugget of information I was able to get all the on page SEO despite Bubbles’ lack of features for it.

4 Likes

@chris.williamson1996 I was finally able to get it to work with your advice and this tutorial:

Thanks!

Did not understand what @boston85719 suggested. I’m a beginner, so probably miss some obvious stuff…

1 Like

Hi Boston,

I have also created manual sitemap. Can you tell me how should i upload on bubble. I am not able generate url which I can add on GSC for that particular file.

Thanks

Go to settings, SEO/Metatags and scroll to bottom to find this section

Hi,

I have done that, but I am not able to set the url of the file, which I have to upload on GSC.

For this page I am creating sitemap - The Ultimate B2B and IT Marketing Prompt Library: Generate Winning Content

I have created the sitemap file manually - https://adf1293b6cc065a52cfb7495d9cd0c51.cdn.bubble.io/f1718686483372x435962863216186100/sitemap-b2b-and-it-marketing-prompt-library.xml.xml?_gl=1*ne1ztn*_gcl_au*MTIwODAyMTM4NS4xNzE5NDAwNTk4*_ga*MTIwNTI3MjE3MS4xNzE5NDAwNTk4*_ga_BFPVR2DEE2*MTcyMDU5MjAzNi4xMC4xLjE3MjA2MDk3NjYuNDMuMC4w

Now, I am not able to generate the url which I have to add in GSC Sitemap

The instructions are in the screen shot…read that paragraph under the title

Hi,

I have gone through it, I have changed the file name also, still I am not able to get the url file which I can submit on GSC

Can you please elaborate the steps. It will be very helpful

take your domain name and add the file name

Screen Shot 2024-07-11 at 2.21.05 PM

Hi Boston,

Thanks for the help.
I got the url of the sitemap and submitted by pages are getting crawled.

Thanks once again for the help

Hi Boston, I’m not understanding how you get /en/ in the url. And how you have 3 paths (blog/en/3rd-path-content). From my understanding I cannot put a “/“ in a slug and I cannot even natively have that many paths - only 2 (/page/thing). I’m still reading your replies to me over and over. Thank you.