Using Data from URL to Pick Page's Data

Hi! I’m building a linktr.ee-like app, where users can create a profile which will be shown when anyone visits a specific link. (i.e. mysite.com/i/lily).

I have the page all set up, but I can’t figure out how to extract the profile name from the url (in this example, the profile name would be lily) and set it for the page.
I hope this makes sense! If not, I can provide more info.

Thanks in advance for any help!

Is the page set up with a defined content type of whatever datatype you’re using for your profile data?

If so, all you need to do is refer to the page’s data on the page.

Yep, the page is set up with the datatype. It all works fine with Lorem Ipsum (https://pridebio.bubbleapps.io/version-test/i/Lorem%20ipsum…)but when I try with my own dummy profile, it doesn’t work. (https://pridebio.bubbleapps.io/version-test/i/Lily)

I just tried loading your page with all lowercase in the URL path and it loaded data, so I’m guessing you’ve set your slug in lowercase, but your link was capitalized - so that looks like the reason.

i.e.: https://pridebio.bubbleapps.io/version-test/i/lily

1 Like

Yep, that’s exactly what it was! Thank you!!

Is there an effective way to make the url case-insensitive?

URL paths are always case sensitive…

If you want, you could convert the path into lowercase (using get data from URL: lowercase) and then match that to data in your database (you wouldn’t be able to use a defined content type for your page in this case, so you’d have to change the data source of your page elements accordingly).