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

**URL:** <https://forum.bubble.io/t/using-the-current-url-doesnt-return-the-whole-url/343346>\
**Category:** App Organization\
**Created:** [October 7, 2024, 10:53am UTC](https://forum.bubble.io/t/using-the-current-url-doesnt-return-the-whole-url/343346 "2024-10-07T10:53:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![QIRO](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/qiro/32/237385_2.png) [@QIRO](https://forum.bubble.io/u/QIRO)\
**Post date:** [October 7, 2024, 10:53am UTC](https://forum.bubble.io/t/using-the-current-url-doesnt-return-the-whole-url/343346/1 "2024-10-07T10:53:03Z")

</div>

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](http://website.com/index/home/dashboard)

Returns:  
[website.com/index/home/](http://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!

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [October 7, 2024, 12:05pm UTC](https://forum.bubble.io/t/using-the-current-url-doesnt-return-the-whole-url/343346/2 "2024-10-07T12:05:40Z")

</div>

How are you referencing the URL?

---

<div class="post-metadata">

**Author:** ![QIRO](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/qiro/32/237385_2.png) [@QIRO](https://forum.bubble.io/u/QIRO)\
**Post date:** [October 7, 2024, 8:46pm UTC](https://forum.bubble.io/t/using-the-current-url-doesnt-return-the-whole-url/343346/3 "2024-10-07T20:46:19Z")

</div>

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

![image](https://us1.discourse-cdn.com/bubble/original/3X/a/6/a6c85b4b5478d91a48a641e202e56b6464850d39.png)

website/index/home/dashboard is what I want, but I get [website.com/index/home](http://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”

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/6/a/6a817898195da191df378d21b8579d7d0a1541e3.png)

---

<div class="post-metadata">

**Author:** ![GH5T](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gh5t/32/209141_2.png) [@GH5T](https://forum.bubble.io/u/GH5T)\
**Post date:** [October 7, 2024, 9:05pm UTC](https://forum.bubble.io/t/using-the-current-url-doesnt-return-the-whole-url/343346/4 "2024-10-07T21:05:35Z")

</div>

Should check out my [PathHopper](https://forum.bubble.io/t/340219) plugin. New and will handle dynamic routing much easier 🙂

- 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

---

<div class="post-metadata">

**Author:** ![QIRO](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/qiro/32/237385_2.png) [@QIRO](https://forum.bubble.io/u/QIRO)\
**Post date:** [October 8, 2024, 8:49am UTC](https://forum.bubble.io/t/using-the-current-url-doesnt-return-the-whole-url/343346/5 "2024-10-08T08:49:02Z")

</div>

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 😂

> [@GH5T](#):
>
> Get path from page URL: item #1-2-3

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

---

<div class="post-metadata">

**Author:** ![GH5T](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gh5t/32/209141_2.png) [@GH5T](https://forum.bubble.io/u/GH5T)\
**Post date:** [October 8, 2024, 8:54am UTC](https://forum.bubble.io/t/using-the-current-url-doesnt-return-the-whole-url/343346/6 "2024-10-08T08:54:41Z")

</div>

![rwuJOjxK3w](https://us1.discourse-cdn.com/bubble/original/3X/f/b/fb90c8d846b3abebb6697737bfe35d26a035067d.gif)  
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.

---

<div class="post-metadata">

**Author:** ![QIRO](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/qiro/32/237385_2.png) [@QIRO](https://forum.bubble.io/u/QIRO)\
**Post date:** [October 8, 2024, 9:13am UTC](https://forum.bubble.io/t/using-the-current-url-doesnt-return-the-whole-url/343346/7 "2024-10-08T09:13:30Z")

</div>

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.
