# How to go to a dynamically set destination

**URL:** <https://forum.bubble.io/t/how-to-go-to-a-dynamically-set-destination/188597>\
**Category:** Need help\
**Created:** [January 27, 2022, 9:44pm UTC](https://forum.bubble.io/t/how-to-go-to-a-dynamically-set-destination/188597 "2022-01-27T21:44:13Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![brenton.strine](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/brenton.strine/32/124156_2.png) [@brenton.strine](https://forum.bubble.io/u/brenton.strine)\
**Post date:** [January 27, 2022, 9:44pm UTC](https://forum.bubble.io/t/how-to-go-to-a-dynamically-set-destination/188597/1 "2022-01-27T21:44:14Z")

</div>

This question is similar to [Can I set a dynamic destination in workflows?](http://forum.bubble.io/t/can-i-set-a-dynamic-destination-in-workflows/52784) and [Dynamic Destination url not working](http://forum.bubble.io/t/dynamic-destination-url-not-working/18538) which did not get solved.

I have a workflow which can receive a URL or a page name. (It’s a menu where each option has a URL attribute.) However, the “destination” field only gives a list of current pages, I don’t see an option to dynamically select the page.

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

I’d like to be able to navigate to the URL of the currently selected option rather than manually creating dozens of steps for each page.

---

<div class="post-metadata">

**Author:** ![equibodyapp](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/equibodyapp/32/159574_2.png) [@equibodyapp](https://forum.bubble.io/u/equibodyapp)\
**Post date:** [January 27, 2022, 10:11pm UTC](https://forum.bubble.io/t/how-to-go-to-a-dynamically-set-destination/188597/2 "2022-01-27T22:11:34Z")

</div>

I’d set a link element on the page - you won’t need a workflow then and you can set the URL dynamically 🙂

But on another note - I’d just have one page and then on the page have it set to get a URL parameter in order to display the appropriate data. Then you navigate to that page and ‘send more parameters’ to the page using the key and a dynamic value.

---

<div class="post-metadata">

**Author:** ![brenton.strine](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/brenton.strine/32/124156_2.png) [@brenton.strine](https://forum.bubble.io/u/brenton.strine)\
**Post date:** [January 27, 2022, 11:10pm UTC](https://forum.bubble.io/t/how-to-go-to-a-dynamically-set-destination/188597/3 "2022-01-27T23:10:35Z")

</div>

This is a large menu which is populated by a menu, so setting a link element would defeat the whole purpose 😆

I can see having a “redirect” page work, but I worry it wouldn’t redirect fast enough and would mess up the back button…

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [January 27, 2022, 11:30pm UTC](https://forum.bubble.io/t/how-to-go-to-a-dynamically-set-destination/188597/4 "2022-01-27T23:30:40Z")

</div>

The correct way to do this is to use the **Navigate \> Open an external website** Action, and construct the URL yourself as a text expression. Note that there is a handy built-in expression (“Website home URL” which resolves to the correct base URL for your site, including things like /version-test/ and /version-live/, so you don’t have to work out the logic for that. Note that “Website home URL” INCLUDES the trailing slash, so don’t add one manually. The slug you construct should not start with “/”, but with page name).

So, to go to some page in your site:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/9/e/9e26fe57f80439fa1fbff724587f7a42f5dc4ab2.png)

If you need to send a query string or a Thing’s unique ID, you construct that yourself also.

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [January 27, 2022, 11:37pm UTC](https://forum.bubble.io/t/how-to-go-to-a-dynamically-set-destination/188597/5 "2022-01-27T23:37:42Z")

</div>

BTW, the “Link” element can be used similarly, but it creates a link element in your page and is not an action. You can also create a link in any text element using BBcode and the same dynamic expression technique.

---

<div class="post-metadata">

**Author:** ![brenton.strine](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/brenton.strine/32/124156_2.png) [@brenton.strine](https://forum.bubble.io/u/brenton.strine)\
**Post date:** [January 27, 2022, 11:40pm UTC](https://forum.bubble.io/t/how-to-go-to-a-dynamically-set-destination/188597/6 "2022-01-27T23:40:22Z")

</div>

Hm, maybe I could replicate this by using a repeating list containing links. Seems a shame to re-build the slidebar menu which is otherwise super easy to use.

---

<div class="post-metadata">

**Author:** ![equibodyapp](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/equibodyapp/32/159574_2.png) [@equibodyapp](https://forum.bubble.io/u/equibodyapp)\
**Post date:** [January 28, 2022, 5:47am UTC](https://forum.bubble.io/t/how-to-go-to-a-dynamically-set-destination/188597/7 "2022-01-28T05:47:10Z")

</div>

> [@brenton.strine](#):
>
> This is a large menu which is populated by a menu, so setting a link element would defeat the whole purpose 😆

Not sure how it defeats the whole purpose - if you are wanting the user to click something in order to navigate to another URL then the link element is exactly for this.

You can style the link element anyway you like - often I will have an invisible link element over the top of an image etc. Saves having to build workflows and is marginally quicker to navigate.

If you need to navigate to another URL by a trigger other than a user ‘click’ then you can use the navigate actions, internal page or external website depending on your use case (or even javascript if you need to open in another window).

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [January 28, 2022, 6:29am UTC](https://forum.bubble.io/t/how-to-go-to-a-dynamically-set-destination/188597/8 "2022-01-28T06:29:15Z")

</div>

This is exactly the way to think about it, @equibodyapp!

---

<div class="post-metadata">

**Author:** ![brenton.strine](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/brenton.strine/32/124156_2.png) [@brenton.strine](https://forum.bubble.io/u/brenton.strine)\
**Post date:** [January 28, 2022, 6:38pm UTC](https://forum.bubble.io/t/how-to-go-to-a-dynamically-set-destination/188597/9 "2022-01-28T18:38:14Z")

</div>

> [@equibodyapp](#):
>
> Not sure how it defeats the whole purpose

I’m sorry I thought you meant using a single link element instead of an entire menu of links. The reason I’m using an option is to be able to dynamically generate a menu with many links using it. But now I realize that this can be done with a Repeating Group to make a menu, I don’t need to depend on a menu plugin.

---

<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:** [April 7, 2022, 9:44pm UTC](https://forum.bubble.io/t/how-to-go-to-a-dynamically-set-destination/188597/10 "2022-04-07T21:44:54Z")

</div>

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