# Go to page - same page URL, sending parameter

**URL:** <https://forum.bubble.io/t/go-to-page-same-page-url-sending-parameter/87731>\
**Category:** Need help\
**Created:** [April 21, 2020, 9:27pm UTC](https://forum.bubble.io/t/go-to-page-same-page-url-sending-parameter/87731 "2020-04-21T21:27:24Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryparken](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ryparken/32/55048_2.png) [@ryparken](https://forum.bubble.io/u/ryparken)\
**Post date:** [April 21, 2020, 9:27pm UTC](https://forum.bubble.io/t/go-to-page-same-page-url-sending-parameter/87731/1 "2020-04-21T21:27:24Z")

</div>

I would like to open the same page with an additional parameter in URL, so that users can share a URL with the parameter (which triggers action on this page) and not the generic page URL.

I use “Go to page”, but all it does — it appends the parameter to the URL. I need to then use the workflow action “refresh page” to actually make Bubble go to that page, which is OK with me, but Bubble gives me an error icon saying that “Go to page” should be the last item in a workflow. Silly Bubble or silly me?

---

<div class="post-metadata">

**Author:** ![simon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/simon/32/8895_2.png) [@simon](https://forum.bubble.io/u/simon)\
**Post date:** [April 21, 2020, 9:32pm UTC](https://forum.bubble.io/t/go-to-page-same-page-url-sending-parameter/87731/2 "2020-04-21T21:32:15Z")

</div>

Shouldn’t need the refresh if it is adding the parameter to the url i.e. [https://mycompany.com/?status=specialmode](https://mycompany.com/?status=specialmode)

Then you should be able to check for this on page load and show the relevant info based on the parameter in the URL

Simon

> **[Million Labs No-Code MVP](https://Millionlabs.co.uk/)**
>
> Million Labs help start up companies to validate their business idea, to develop a no-code MVP to test, monetise and fund their business launch.

---

<div class="post-metadata">

**Author:** ![ryparken](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ryparken/32/55048_2.png) [@ryparken](https://forum.bubble.io/u/ryparken)\
**Post date:** [April 21, 2020, 9:40pm UTC](https://forum.bubble.io/t/go-to-page-same-page-url-sending-parameter/87731/3 "2020-04-21T21:40:46Z")

</div>

Not sure I fully follow. Let me elaborate.

When page is loaded without a parameter, it shows A. When it’s loaded with a parameter, it shows B. I am on a page showing A, and I click a button which appends a parameter. Parameter shows in the browser URL field, but nothing happens. I can’t use “When page is loaded”, since I appended the parameter after it’s been loaded.

---

<div class="post-metadata">

**Author:** ![sudsy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sudsy/32/114637_2.png) [@sudsy](https://forum.bubble.io/u/sudsy)\
**Post date:** [April 22, 2020, 2:57am UTC](https://forum.bubble.io/t/go-to-page-same-page-url-sending-parameter/87731/5 "2020-04-22T02:57:09Z")

</div>

Hi @ryparken,

See [this example](https://tt-examples.bubbleapps.io/page-params). By making use of conditionals, elements on the page can respond to changes in the query string without reloading the page - e.g. showing/hiding groups, changing element appearance, etc. Notice the address bar URL and the text fields on the page as the buttons are clicked.

Path params are another story though. AFAIK, without a plugin, the page will reload. That was one of several motivations behind [Sudsy Page](http://forum.bubble.io/t/updated-v2-2-0-sudsy-page-router-for-seo-friendly-clean-urls-by-tech-tonic/52350/43). Of course, in addition to better performance and UX, there are also SEO benefits to using link elements and clean URLs.

---

<div class="post-metadata">

**Author:** ![ryparken](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ryparken/32/55048_2.png) [@ryparken](https://forum.bubble.io/u/ryparken)\
**Post date:** [April 22, 2020, 5:33am UTC](https://forum.bubble.io/t/go-to-page-same-page-url-sending-parameter/87731/6 "2020-04-22T05:33:05Z")

</div>

Hi there @sudsy. This is a great example, and I should make the use of it for sure! However, I once again failed to explain the purpose of my exercise.

Let me just show you on my app.

1. This is the [link to the app page](https://gifadvice.com/aap), which presents a gallery of advice guides. When you click on any advice, you switch to the preview mode. For example, click on the Dog’s toothache advice. Make a note that the URL hasn’t changed (it’s a one page app).

2. Now, paste [this link](https://gifadvice.com/aap?gifa=1587410896331x783836339410567200) to a new browser window. It will open the Dog’s advice in the viewer mode, but now you have the ID in the URL.

The point is — always have the corresponding advice id within the URL, so that when the user shares the page, he shares the URL to a specific advice, and not the app in general.

P.S. Apparently, it works fine with only “Go to page” and without refreshing (advice ID gets appended and correct URL can be copied). However, I don’t understand why Bubble made it this way so that pages with the same page name but various parameters are not considered as different pages, which is a case in web programming since like 20 years.

---

<div class="post-metadata">

**Author:** ![sudsy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sudsy/32/114637_2.png) [@sudsy](https://forum.bubble.io/u/sudsy)\
**Post date:** [April 22, 2020, 11:54am UTC](https://forum.bubble.io/t/go-to-page-same-page-url-sending-parameter/87731/7 "2020-04-22T11:54:14Z")

</div>

> [@ryparken](#):
>
> click on the Dog’s toothache advice. Make a note that the URL hasn’t changed

> [@ryparken](#):
>
> The point is — always have the corresponding advice id within the URL

My understanding is that having the query string **always** appear in the URL for a specific advice is the **desired** behavior, right?

So it seems your question is, ”How do I get the advice-specific URL to appear in the address bar when the gallery image is clicked?“

The example I provided seems to demonstrate one way of doing that.

Since it’s _not_ happening in your app when a gallery image is clicked, the issue comes down to **how your navigation is being handled internally in that case**.

If you can elaborate and/or share a screenshot of your workflow which handles the gallery image click, that would be helpful.

---

<div class="post-metadata">

**Author:** ![sudsy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sudsy/32/114637_2.png) [@sudsy](https://forum.bubble.io/u/sudsy)\
**Post date:** [April 22, 2020, 12:12pm UTC](https://forum.bubble.io/t/go-to-page-same-page-url-sending-parameter/87731/8 "2020-04-22T12:12:06Z")

</div>

> [@ryparken](#):
>
> works fine with only “Go to page” and without refreshing

I don’t understand why you need to refresh the page. That should not be necessary. You should be able to display page content based on the changed URL - an approach that is used often in Bubble SPA’s.

---

<div class="post-metadata">

**Author:** ![ryparken](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ryparken/32/55048_2.png) [@ryparken](https://forum.bubble.io/u/ryparken)\
**Post date:** [April 23, 2020, 5:57am UTC](https://forum.bubble.io/t/go-to-page-same-page-url-sending-parameter/87731/9 "2020-04-23T05:57:16Z")

</div>

🙂 It’s not about displaying content. It’s about having a URL to contain an item id, which is needed if user wants to share link to a specific item, and not the entire app.

---

<div class="post-metadata">

**Author:** ![sharma.himanshu0608](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sharma.himanshu0608/32/81321_2.png) [@sharma.himanshu0608](https://forum.bubble.io/u/sharma.himanshu0608)\
**Post date:** [April 23, 2020, 6:51am UTC](https://forum.bubble.io/t/go-to-page-same-page-url-sending-parameter/87731/10 "2020-04-23T06:51:28Z")

</div>

Sudsy plugin or a Zeroqode plugin can help you change the URL and load particular groups

---

<div class="post-metadata">

**Author:** ![sudsy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sudsy/32/114637_2.png) [@sudsy](https://forum.bubble.io/u/sudsy)\
**Post date:** [April 23, 2020, 12:30pm UTC](https://forum.bubble.io/t/go-to-page-same-page-url-sending-parameter/87731/11 "2020-04-23T12:30:36Z")

</div>

> [@ryparken](#):
>
> It’s not about displaying content. It’s about having a URL to contain an item id

I guess I’m confused then, because I thought you said that the **Go to page** action shows the URL.

---

<div class="post-metadata">

**Author:** ![sudsy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sudsy/32/114637_2.png) [@sudsy](https://forum.bubble.io/u/sudsy)\
**Post date:** [April 23, 2020, 2:12pm UTC](https://forum.bubble.io/t/go-to-page-same-page-url-sending-parameter/87731/12 "2020-04-23T14:12:15Z")

</div>

> [@ryparken](#):
>
> It’s about having a URL to contain an item id

Please tell my why one of these approaches wouldn’t work…

- [Using Built-In Page Data Feature (Path Param)](https://tt-examples.bubbleapps.io/page-data)
- [Using “Manual Approach” via Query String](https://tt-examples.bubbleapps.io/page-data-qs)

Please take note of the difference in the URL between the two approaches when clicking a thumbnail.

(Using a plug-in offers certain benefits, but it’s certainly not necessary for what you want to achieve.)

---

<div class="post-metadata">

**Author:** ![sudsy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sudsy/32/114637_2.png) [@sudsy](https://forum.bubble.io/u/sudsy)\
**Post date:** [April 24, 2020, 11:28pm UTC](https://forum.bubble.io/t/go-to-page-same-page-url-sending-parameter/87731/13 "2020-04-24T23:28:40Z")

</div>

> [@sudsy](#):
>
> Path params are another story though. AFAIK, without a plugin, the page will reload.

…with the exception, of course, of Bubble’s built-in “send data to page” functionality, in which case the unique ID is sent as a path param without the page reloading. (See [response above](http://forum.bubble.io/t/go-to-page-same-page-url-sending-parameter/87731/12).)

---

<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 30, 2020, 9:27pm UTC](https://forum.bubble.io/t/go-to-page-same-page-url-sending-parameter/87731/14 "2020-06-30T21:27:29Z")

</div>

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