Sharing a link (using URL parameters)

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:

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

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?

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.

1 Like

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:

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.

2 Likes

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

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:

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 toGet data from page URL - and selected the correct data type:

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

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.

1 Like

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

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

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!

1 Like

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