What we want to avoid doing is looping bubble on the page loads, as then bad things happen. Hence we must check that the slug exists or we will just go round in a loop.
Also… you can’t debug this, as you then can’t get to the slug name you just get the debug bit.
I actually don’t think we are too far off a less hacky solution, we are just transferring the responsibility of setting the page thing from Bubble to the Programmer. If we could find a way to get the final part of the URL back as an :extract then it would be a lot tidier.
@NigelG So we at last have a moment to try and play with this.
We’re trying to understand the Slug concept, but can’t find out how to see what you have in the first image you posted in this thread. To be honest, we’re not even sure if we still need that as you said later [quote=“NigelG, post:11, topic:3343”]
another way to do this and it doesn’t need the messing about with the URL.
[/quote]
@Nigel we’re going to push on Monday a fix to a bug that your method was relying on. So you should change the system in one way (it’s quick).
Instead of getting the unique ID from the page’s thing (which doesn’t exist, that’s the bug: you shouldn’t have it…), use ‘Get data from URL’ and pick ‘Path’. That’ll do exactly the same, and it’s cleaner.
Im i bit lost here, i don’t know if this is the right thread but im going to try it…
In my service, users will signup and they have a “username” field on the Users data type. Is it posible to automatically assign that username as their unique url?
For example if i signup and entered “charlie” as my username, my profile link will be domainname.com/charlie
In which case the page name is users, and on that page you will use “get path” to find charlie and search the database for that user and display their stuff.
I’m trying to implement this solution but I don’t understand, I’m confused:
for example, I don’t understand which parameter should I send of my item, then how the “get from path” works to get back the item in the page (no documentation), then I don’t understand how this should shrink the url…
Actually I think I’m starting to succeed… but there is one inconvenient I found in this method:
I can call the datas I want, in a group on the page, but I cannot tell “the page” to be based on that data…
this is a big restriction to determine accurate title and description for SEO, as this two can be referred only to “current page item” and “current user”
You could set a page’s content type to be a thing. Then see if you can extract the parameter, then do a navigation to the same page with the page thing. Although that will go from the www.yoursite/yourpage/thething simpler URL to one with the UID on the end.
mmm… actually I’m trying to make the url short for SEO purposes… adding redirection and finding me anyway in the page with ID, or not being able to set the SEO tags is a dog biting his tail… Maybe it is worth it to ask for the feature to be able to set SEO description and SEO title more dynamically, as we can do with page title (with a search for example…)?