Using the Current URL Doesn't Return the Whole URL?

Hi guys,

When I reference the URL of the current page it always seems to leave off the last section of the path.

For example:
website.com/index/home/dashboard

Returns:
website.com/index/home/

I have solved this by pulling the URL, append, /, append, URL as segment, last segment.

This seems insane, though. Is there a better way?

I have tried using Current Page but that doesn’t work for me at all, and using This URL slaps it at the end of the existing URL. I’m not having much luck here!

1 Like

How are you referencing the URL?

This is the only way I have been able to get the result I want:

image

website/index/home/dashboard is what I want, but I get website.com/index/home

So I do this: Get the path, then append a forward slash (the arbirary text) and append the final segment of the path that always gets missed off.

website/index/home [append] “/” [append] “dashboard”

Should check out my PathHopper plugin. New and will handle dynamic routing much easier :slight_smile:

  • NOTE: If you use my PathHopper plugin, you must use the actions/triggers from the PathHopper as native Bubble URL solutions will no longer work.

Otherwise, you just want to do:

Get path from page URL: item #1-2-3

Or last item.

yoururl(.)com/path1/path2/path3

1 Like

Using PathHopper would break every redirect in the application? That might be a piece of work for another day! It’s quite a large system at this point, I’ve been using the same ‘append’ system throughout because I could never find a better solution :joy:

I’m not sure how you’re achieving this, though?

rwuJOjxK3w
You can go as deep as you need as long as you know the arrangement of your keys.

With PathHopper, you could ultimately have one page and as many routes as you want with instant loads and be able to refresh back to where your page was. With Bubble, natively it cannot do that.

1 Like

I have never seen this before, what a great shout, thanks for this. I can see it will be useful in more than just this application.

I tip my hat to you.