# Sharing a link (using URL parameters)

**URL:** <https://forum.bubble.io/t/sharing-a-link-using-url-parameters/305452>\
**Category:** Need help\
**Created:** [February 2, 2024, 3:03am UTC](https://forum.bubble.io/t/sharing-a-link-using-url-parameters/305452 "2024-02-02T03:03:11Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![rudibakken](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rudibakken/32/173531_2.png) [@rudibakken](https://forum.bubble.io/u/rudibakken)\
**Post date:** [February 2, 2024, 3:03am UTC](https://forum.bubble.io/t/sharing-a-link-using-url-parameters/305452/1 "2024-02-02T03:03:11Z")

</div>

Hi, on the front page of my application I have a RG that acts like a ‘news grid’.  
When a user clicks on on of the news it shows a news\_article group that displays the actual article. I’m using URL parameters to achieve that:

 ![Skjermbilde 2024-02-02 kl. 04.03.53](https://us1.discourse-cdn.com/bubble/original/3X/7/5/7503b0c4d0973295c1cad55705ec776d214d6939.png)

In the case that someone would like to share that article by copying the URL in the browser, they would run into this problem:

 ![Skjermbilde 2024-02-02 kl. 03.58.37](https://us1.discourse-cdn.com/bubble/original/3X/a/7/a7b1f27e151c1dbed42d50643e7c7495895479c5.png)

Linking to that specific news article will obviously not work, and the URL will show a fairly blank page when pasted into a browser directly.

Is there a way to send more information to the URL in order to make it shareable?

---

<div class="post-metadata">

**Author:** ![hergin](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hergin/32/199185_2.png) [@hergin](https://forum.bubble.io/u/hergin)\
**Post date:** [February 2, 2024, 3:17am UTC](https://forum.bubble.io/t/sharing-a-link-using-url-parameters/305452/2 "2024-02-02T03:17:29Z")

</div>

You can add more parameter like the news piece ID by clicking on that `+ add another parameter` button. And show the article etc by using that ID in the url.

---

<div class="post-metadata">

**Author:** ![rudibakken](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rudibakken/32/173531_2.png) [@rudibakken](https://forum.bubble.io/u/rudibakken)\
**Post date:** [February 2, 2024, 3:30am UTC](https://forum.bubble.io/t/sharing-a-link-using-url-parameters/305452/3 "2024-02-02T03:30:58Z")

</div>

Thanks for putting me in the right direction @hergin However, I had a look at the `+ add another parameter` but my only experience with this function so far has been to use it to navigate., so I’m not sure how to proceed from here:

 ![Skjermbilde 2024-02-02 kl. 04.30.00](https://us1.discourse-cdn.com/bubble/original/3X/9/a/9ac0b3c3d1aacf40d5455fcf544cc438a8a9f613.png)

---

<div class="post-metadata">

**Author:** ![draked123](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/draked123/32/262422_2.png) [@draked123](https://forum.bubble.io/u/draked123)\
**Post date:** [February 2, 2024, 3:33am UTC](https://forum.bubble.io/t/sharing-a-link-using-url-parameters/305452/4 "2024-02-02T03:33:53Z")

</div>

From there, you’d want to pass on the article being looked at. You can do this by setting `article` = `Current cell's article's unique id`

Now, you’d want to click on the group on the article where you currently display it. You probably pass the article through the workflow `Display data in group` - and that is the group you want to actually change. On that group, you are going to set the Data source to:  
`Get data from page URL`

On the popup, you are going to get a `Parameter`  
The parameter name is `article`  
For the type, select the data type of how you address your articles.

That should round out that feature.

---

<div class="post-metadata">

**Author:** ![rudibakken](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rudibakken/32/173531_2.png) [@rudibakken](https://forum.bubble.io/u/rudibakken)\
**Post date:** [February 2, 2024, 4:03am UTC](https://forum.bubble.io/t/sharing-a-link-using-url-parameters/305452/5 "2024-02-02T04:03:45Z")

</div>

Thank you guys! I’m getting closer to a solution step by step:

 ![Skjermbilde 2024-02-02 kl. 04.51.52](https://us1.discourse-cdn.com/bubble/original/3X/4/6/46c47dd7911a638644fb1d0a1a7b11f8a13a4f7a.png)

The ID shows in the address bar, but for some reason the article doesn’t show in the group.

This is my setup of the article type:

 ![Skjermbilde 2024-02-02 kl. 04.56.20](https://us1.discourse-cdn.com/bubble/original/3X/7/1/71787465bece85ad8d460862d29d4cdac0881208.png)

I am passing the article through `Display data in group` as you correctly assumed @draked123 - and it is displaying to the group ‘news\_article’. After having set Data source to`Get data from page URL` - and selected the correct data type:

 ![Skjermbilde 2024-02-02 kl. 05.02.44](https://us1.discourse-cdn.com/bubble/original/3X/6/b/6bdf747e20e8eabbc2925aba4653564a8a573676.png)

the id showed up in the address bar, but the content doesn’t show anymore

---

<div class="post-metadata">

**Author:** ![draked123](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/draked123/32/262422_2.png) [@draked123](https://forum.bubble.io/u/draked123)\
**Post date:** [February 2, 2024, 4:10am UTC](https://forum.bubble.io/t/sharing-a-link-using-url-parameters/305452/6 "2024-02-02T04:10:19Z")

</div>

Are there any conditionals on the stuff to hide? I would check those.

If that is still empty, use your Inspect mode on your debug tools, find that group, and poke around and see if data is being sent to it.

---

<div class="post-metadata">

**Author:** ![rudibakken](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rudibakken/32/173531_2.png) [@rudibakken](https://forum.bubble.io/u/rudibakken)\
**Post date:** [February 2, 2024, 4:19am UTC](https://forum.bubble.io/t/sharing-a-link-using-url-parameters/305452/7 "2024-02-02T04:19:24Z")

</div>

The only condition is this (which I use for navigation):

 ![Skjermbilde 2024-02-02 kl. 05.16.20](https://us1.discourse-cdn.com/bubble/original/3X/b/2/b27b230ad6a181b08e10e7242d17495ee496eb4b.png)

I’ll try the debugger to see if I can find a solution

---

<div class="post-metadata">

**Author:** ![rudibakken](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rudibakken/32/173531_2.png) [@rudibakken](https://forum.bubble.io/u/rudibakken)\
**Post date:** [February 2, 2024, 4:26am UTC](https://forum.bubble.io/t/sharing-a-link-using-url-parameters/305452/8 "2024-02-02T04:26:57Z")

</div>

Thank you so much @hergin and @draked123

Finally there was a group within the news\_article group holding the actual content (fields) that had to have the same Data source as the parent group.

It works now!

---

<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 12, 2024, 3:03am UTC](https://forum.bubble.io/t/sharing-a-link-using-url-parameters/305452/9 "2024-04-12T03:03:23Z")

</div>

Closed on April 12, 2024, 3:03am UTC

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