# Get Path from URL? Bug or Simply Not working?

**URL:** <https://forum.bubble.io/t/get-path-from-url-bug-or-simply-not-working/258269>\
**Category:** Need help\
**Created:** [April 18, 2023, 6:06pm UTC](https://forum.bubble.io/t/get-path-from-url-bug-or-simply-not-working/258269 "2023-04-18T18:06:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![buero](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/buero/32/31435_2.png) [@buero](https://forum.bubble.io/u/buero)\
**Post date:** [April 18, 2023, 6:06pm UTC](https://forum.bubble.io/t/get-path-from-url-bug-or-simply-not-working/258269/1 "2023-04-18T18:06:27Z")

</div>

Hey i feel so stupid, can someone tell me why this does not work?

I want to read the page URL Path('s Name) of the Page he is on.  
I only show the Events \> EventName when i am on the Page “Name” (Condition only show when Name = Event //// ← this works so he understands he is on the right site)

The only issue is that this is my menu and a reusable element - so why do i get the bug, on the normal page the same command is working perfectly?

 ![Bildschirm­foto 2023-04-18 um 20.03.35](https://us1.discourse-cdn.com/bubble/original/3X/4/f/4f5e0d0f01fd8044c32778e835a51c3ec3ee811e.png)

Thx

Some more Infos: Other Stuff is working:

He detectes the right site:

 ![Bildschirm­foto 2023-04-18 um 20.07.25](https://us1.discourse-cdn.com/bubble/original/3X/5/1/51c2ef87abb8cdc1d3ec52f656ce8d949f2f8994.png)  
so he understands what page he is on - so why cant he not read the data from the url? (The URL is active and has information send) → I load it somewhere else so i see he gets it - only in the reusable element not.

![Bildschirm­foto 2023-04-18 um 20.08.07](https://us1.discourse-cdn.com/bubble/original/3X/2/4/245bbea80803d21979bf3b613ebce316ea9cf7ea.png)

---

<div class="post-metadata">

**Author:** ![chris.williamson1996](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/chris.williamson1996/32/70581_2.png) [@chris.williamson1996](https://forum.bubble.io/u/chris.williamson1996)\
**Post date:** [April 18, 2023, 6:13pm UTC](https://forum.bubble.io/t/get-path-from-url-bug-or-simply-not-working/258269/2 "2023-04-18T18:13:53Z")

</div>

Can you share example URL?

Does the preview URL have an event path in it currently?

Does the page type you’re on have a slug set?

---

<div class="post-metadata">

**Author:** ![buero](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/buero/32/31435_2.png) [@buero](https://forum.bubble.io/u/buero)\
**Post date:** [April 18, 2023, 6:15pm UTC](https://forum.bubble.io/t/get-path-from-url-bug-or-simply-not-working/258269/3 "2023-04-18T18:15:51Z")

</div>

ttps://######.bubbleapps.io/version-test/events/andis-event-1681226415955x539670051097149400?debug\_mode=true

i use

[url.com/pagename/#id](http://url.com/pagename/#id)

so basically i set the page data to not doubleset an event slug when i directly have it as page option

---

<div class="post-metadata">

**Author:** ![buero](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/buero/32/31435_2.png) [@buero](https://forum.bubble.io/u/buero)\
**Post date:** [April 18, 2023, 6:35pm UTC](https://forum.bubble.io/t/get-path-from-url-bug-or-simply-not-working/258269/4 "2023-04-18T18:35:04Z")

</div>

Found the issue:

Seems like it does not work when i use “Backup Link” in Page Option:

it has to be

without bold  
\*ttps://######.bubbleapps.io/version-test/events/ **andis-event-** 1681226415955x539670051097149400?debug\_mode=true`

\*ttps://######.bubbleapps.io/version-test/events/1681226415955x539670051097149400?debug\_mode=true`

Do not know if this is a bug or just not possible when working with components. I will ask the support.

now it Works thx 🙂  
Backup field has to be empty!

![Bildschirm­foto 2023-04-18 um 20.33.37](https://us1.discourse-cdn.com/bubble/original/3X/7/2/720a5b07163d7ec6704aa641030fb18b0aed9ad1.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [June 27, 2023, 6:06pm UTC](https://forum.bubble.io/t/get-path-from-url-bug-or-simply-not-working/258269/5 "2023-06-27T18:06:52Z")

</div>

Closed on June 27, 2023, 6:06pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
