Maybe there is already a way to do this but it would be great if:
When a page is created on the database side we can add a user friendly name to use as the URL. perhaps as a dynamic field i.e use page title.
At the moment URL’s for pages created in the database look like this:
/story/1504276288581x386937277276225540
it would be great it if was like this:
/story/how-to-ride-a-bike
I know there is an option for readable field but this just adds it to the long id number:
/content/visit-us-1504276288581x386937277276225540
rather than:
/content/visit-us
2 Likes
NigelG
September 7, 2017, 7:54pm
2
You can use the “Get Path” function on a page to read in the path and then do a search for the relevant data.
That will do what you want.
@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.
[image]
Thank you!
But I’m a bit lost here, could you explain the "Get Path” function, sorry if im missing something
NigelG
September 8, 2017, 5:32am
4
So in your example …
/story/how-to-ride-a-bike
the page name is “story”.
how-to-ride-a-bike is the “path”
So you can extract the path …
And use that to search for your story …
For example…
https://trest3.bubbleapps.io/version-test/slugtest/how-to-ride-a-bike
Will search for how-to-ride-a-bike and return the story.
https://trest3.bubbleapps.io/version-test/slugtest/how-to-ride-a-bike
https://trest3.bubbleapps.io/version-test/slugtest/thisbit
etc
https://bubble.io/page?type=page&name=slugtest&id=trest3&tab=tabs-1
Hi, I am encountering this problem with my site, even though I use the standard navigation method (Workflow- When button is click_ go to page)… I’ve read this whole thread, but I can’t figure out how how I can let this ID-number disappear when jumping from one page to another.
neysha
April 27, 2018, 7:19pm
6
funwtp
April 27, 2018, 7:28pm
7
Yes, I do it as the following:
https://domainname.com/how-to-ride-a-bike , it goes to /404, then “on page load” do trigger "when condition is true [i.e. extract form URL is “how-to-ride-a-bike” form URL], do… ", and here you can do “display data” or trigger whatever you please.
Maybe try using “Extract path from URL”… I never user it, I do extraction via “Find & Replace”.
Let me know how it goes.
One negative thing is that this way Goodle won’t know about the existence of your page with URL of “https://domainname.com/how-to-ride-a-bike ”.
neysha
April 27, 2018, 8:58pm
8
Thanks for the quick response. I’ll give it a try
1 Like