# Need help for setting up url for single page app

**URL:** <https://forum.bubble.io/t/need-help-for-setting-up-url-for-single-page-app/338524>\
**Category:** Need help\
**Created:** [September 8, 2024, 4:06am UTC](https://forum.bubble.io/t/need-help-for-setting-up-url-for-single-page-app/338524 "2024-09-08T04:06:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prajap74](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/prajap74/32/229977_2.png) [@prajap74](https://forum.bubble.io/u/prajap74)\
**Post date:** [September 8, 2024, 4:06am UTC](https://forum.bubble.io/t/need-help-for-setting-up-url-for-single-page-app/338524/1 "2024-09-08T04:06:04Z")

</div>

I’ve built single page application using custom states and condition to show and hide elements. and “the page is native app” is checked, hence I cannot use go to page option so how I can show different url based on my page content?

I want to do:  
when used share a post \> and someone click on that shared URL \> it should open that particular post that is shared

---

<div class="post-metadata">

**Author:** ![ntabs](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@ntabs](https://forum.bubble.io/u/ntabs)\
**Post date:** [September 8, 2024, 5:00am UTC](https://forum.bubble.io/t/need-help-for-setting-up-url-for-single-page-app/338524/2 "2024-09-08T05:00:53Z")

</div>

If you’re app won’t be a native app/submitted to the app stores (via wrapping), you might want to uncheck the page is native app option.

If you want to use URL parameters or paths to show/hide sections, you need to hide the element/s and only show them when a url path or parameter is not empty. For the data source, you could search for the thing and add the value of the parameter/path as a constraint in your search. This is entirely different from using custom states though.

If you still wish to use custom sates, you would need a way to check the url on page load and do the necessary actions to show the element and display data to them

---

<div class="post-metadata">

**Author:** ![prajap74](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/prajap74/32/229977_2.png) [@prajap74](https://forum.bubble.io/u/prajap74)\
**Post date:** [September 8, 2024, 5:13pm UTC](https://forum.bubble.io/t/need-help-for-setting-up-url-for-single-page-app/338524/3 "2024-09-08T17:13:07Z")

</div>

Thanks, This works perfectly!

---

<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:** [November 17, 2024, 4:07am UTC](https://forum.bubble.io/t/need-help-for-setting-up-url-for-single-page-app/338524/4 "2024-11-17T04:07:02Z")

</div>

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