# Generate a link that loads a page with certain data

**URL:** <https://forum.bubble.io/t/generate-a-link-that-loads-a-page-with-certain-data/79571>\
**Category:** Need help\
**Created:** [February 19, 2020, 1:15pm UTC](https://forum.bubble.io/t/generate-a-link-that-loads-a-page-with-certain-data/79571 "2020-02-19T13:15:57Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmorris](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@cmorris](https://forum.bubble.io/u/cmorris)\
**Post date:** [February 19, 2020, 1:15pm UTC](https://forum.bubble.io/t/generate-a-link-that-loads-a-page-with-certain-data/79571/1 "2020-02-19T13:15:57Z")

</div>

I am trying to work out how to create a link that can be shared and when you click said link, it opens a specific page (in this instance a job role).

Please see below diagram of what I am trying to achieve. The boxes in red are the ones I am stuck with.

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

Any advice would be much appreciated.

Thanks  
CM

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [February 19, 2020, 6:07pm UTC](https://forum.bubble.io/t/generate-a-link-that-loads-a-page-with-certain-data/79571/2 "2020-02-19T18:07:42Z")

</div>

bubble has a pre-built selector website home url. so use that as a value to start…then add the page name you created for the page they are getting sent to…then add the unique identifier you are using to track job roles.

For more clairifcation look for info on clean urls or custom urls

---

<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:** [February 19, 2020, 6:23pm UTC](https://forum.bubble.io/t/generate-a-link-that-loads-a-page-with-certain-data/79571/3 "2020-02-19T18:23:45Z")

</div>

What the OP needs to do is the tutorial lessons, which explain this very basic, core Bubble functionality.

> **[You don't need to be a coder](https://bubble.io/lessons)**
>
> Bubble interactive lessons. Learn how to use Bbble click-by-click. Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

In particular, this is covered in “sending data to pages”, but all of the lessons should be completed.

---

<div class="post-metadata">

**Author:** ![cmorris](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@cmorris](https://forum.bubble.io/u/cmorris)\
**Post date:** [February 20, 2020, 9:08am UTC](https://forum.bubble.io/t/generate-a-link-that-loads-a-page-with-certain-data/79571/5 "2020-02-20T09:08:01Z")

</div>

I appreciate you taking the time to reply but maybe you should have taken the time to read my post correctly. I know how to send data to another page and this is not what I requested. I need to generate a link that will open on a page and load a specific thing. It needs to be a link that can be shared on another website.

---

<div class="post-metadata">

**Author:** ![cmorris](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@cmorris](https://forum.bubble.io/u/cmorris)\
**Post date:** [February 20, 2020, 9:08am UTC](https://forum.bubble.io/t/generate-a-link-that-loads-a-page-with-certain-data/79571/6 "2020-02-20T09:08:33Z")

</div>

Thank you. Will have a look.

---

<div class="post-metadata">

**Author:** ![petter](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/petter/32/98626_2.png) [@petter](https://forum.bubble.io/u/petter)\
**Post date:** [February 20, 2020, 9:26am UTC](https://forum.bubble.io/t/generate-a-link-that-loads-a-page-with-certain-data/79571/7 "2020-02-20T09:26:23Z")

</div>

Hi @cmorris,

Actually there’s a quicker way to generate the link, and it as the advantage of staying dynamically consistent witch the page name if you change it.

Every data type has an auto-generated _link_ that generates the URL for you. @boston85719 solution will work too, but is a bit more risky as it doesn’t reflect changes in page name or _Field for readable URL_ settings. Simply pick the data type and search for _link_, and then select the page that you want the link to point to:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/0/50ce7bdb4ce8b6c085af4769f460f213900436f9.png)

This function seems to be a bit overlooked, not sure why 🙂

---

<div class="post-metadata">

**Author:** ![cmorris](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@cmorris](https://forum.bubble.io/u/cmorris)\
**Post date:** [February 20, 2020, 9:43am UTC](https://forum.bubble.io/t/generate-a-link-that-loads-a-page-with-certain-data/79571/8 "2020-02-20T09:43:02Z")

</div>

Will give it a go, thank you

---

<div class="post-metadata">

**Author:** ![cmorris](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@cmorris](https://forum.bubble.io/u/cmorris)\
**Post date:** [February 20, 2020, 9:44am UTC](https://forum.bubble.io/t/generate-a-link-that-loads-a-page-with-certain-data/79571/9 "2020-02-20T09:44:56Z")

</div>

Do you know how I would then be able to load this data into a page when the link is clicked. I am guessing I would neet to ‘get path from url’ but I have tried using that and can’t get the parameters right. Have you used it before?

---

<div class="post-metadata">

**Author:** ![petter](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/petter/32/98626_2.png) [@petter](https://forum.bubble.io/u/petter)\
**Post date:** [February 20, 2020, 10:37am UTC](https://forum.bubble.io/t/generate-a-link-that-loads-a-page-with-certain-data/79571/10 "2020-02-20T10:37:37Z")

</div>

When you load a page this way, the data will be loaded automatically (in the same way as Go to Page), so there’s no need to use the Get Path. In my example, the User will be loaded as that Page’s Thing whenever the page is loaded through that link.

---

<div class="post-metadata">

**Author:** ![cmorris](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@cmorris](https://forum.bubble.io/u/cmorris)\
**Post date:** [February 20, 2020, 11:05am UTC](https://forum.bubble.io/t/generate-a-link-that-loads-a-page-with-certain-data/79571/11 "2020-02-20T11:05:12Z")

</div>

Ok brilliant, thanks for your help, I will try and have a go later today. Much appreciated

---

<div class="post-metadata">

**Author:** ![sduxbury](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@sduxbury](https://forum.bubble.io/u/sduxbury)\
**Post date:** [February 20, 2020, 4:12pm UTC](https://forum.bubble.io/t/generate-a-link-that-loads-a-page-with-certain-data/79571/12 "2020-02-20T16:12:38Z")

</div>

@cmorris

I have a similar challenge - if you could provide details of how you got your solution working, that would be awesome!

Specifically: I’m looking to generate and email out links that would load a particular ‘view’ for a user when they follow the link.

I’m using a single page design and changing states to show / hide group panels (mobile) - is this possible with this format?

Regards,

Sandy

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [February 21, 2020, 1:27pm UTC](https://forum.bubble.io/t/generate-a-link-that-loads-a-page-with-certain-data/79571/13 "2020-02-21T13:27:11Z")

</div>

> [@petter](#):
>
> This function seems to be a bit overlooked, not sure why

I think one of the reasons is that it is not a “clean URL” and has the unique ID at the end

 ![Screen Shot 2020-02-21 at 8.37.45 PM](https://us1.discourse-cdn.com/bubble/original/3X/6/c/6c2df145eaf3eac69be218bd4a63483ba0680e06.png)

You are correct that it eliminates the problems associated with changing the name of a page, but it also restricts some things as the page needs to be of the same datatype. It seems like if the page you create doesn’t have a data type associated with it, the function for \*_Field for readable URL settings_ is not available, so if you don’t want to associate the page with a data type you are not able to use the method you outlined. I believe the reasoning for not creating a page and making a data type on it is also focused on clean URLs.

I think in the end, whatever works best for the individual is the best way to do something as there are always multiple ways to achieve similar results. I use mine in an attempt to get some SEO benefits from the readable URL as well as possible social sharing, but I’m no expert on these things and just hoping I actually get the benefits.

---

<div class="post-metadata">

**Author:** ![petter](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/petter/32/98626_2.png) [@petter](https://forum.bubble.io/u/petter)\
**Post date:** [February 21, 2020, 2:18pm UTC](https://forum.bubble.io/t/generate-a-link-that-loads-a-page-with-certain-data/79571/14 "2020-02-21T14:18:27Z")

</div>

Yeah, totally valid points, for multiple data types or more control over URL, this method is not very flexible. There are two things to be aware of when choosing though:

- Bubble has confirmed that page load is quicker when the Page Thing is loaded (how much is of course up for debate).
- Dynamic Meta tags can be difficult to set up on pages with more than one data type, as they cannot use conditions and have limited access to parameters (and meta tags weigh more heavily than Url for SEO). So if you’re storing the meta tags in the DB, you’re limited to using one data type either way

It should be noted that for a major project, I chose @boston85719’s method myself, for various reasons. So I’m not really pushing one over the other here, just pointing out alternatives.

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [February 22, 2020, 6:57am UTC](https://forum.bubble.io/t/generate-a-link-that-loads-a-page-with-certain-data/79571/15 "2020-02-22T06:57:10Z")

</div>

> [@petter](#):
>
> Dynamic Meta tags can be difficult to set up on pages with more than one data type

Is this because they are set up behind the scenes by bubble? I am not familiar with meta tags and how to set them up beyond putting that information into the page header.

I definitely need to do more research on the use of them.

---

<div class="post-metadata">

**Author:** ![petter](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/petter/32/98626_2.png) [@petter](https://forum.bubble.io/u/petter)\
**Post date:** [February 22, 2020, 7:20am UTC](https://forum.bubble.io/t/generate-a-link-that-loads-a-page-with-certain-data/79571/16 "2020-02-22T07:20:41Z")

</div>

It’s mainly because they don’t allow for conditions. They recently introduced the ability to Do a Search For… in the tag settings, but since it’s not conditional, you can’t change what data type you are searching for.

One way to partly solve this is to save SEO info in its own data type (and then save the Page Thing you want to load in a field in that container) , or even more efficiently, in the new Option Sets (which I’ve done in some cases, as the loading time for the tags matter), but for large volume data sets this quickly becomes cumbersome.

---

<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 29, 2020, 1:29pm UTC](https://forum.bubble.io/t/generate-a-link-that-loads-a-page-with-certain-data/79571/17 "2020-04-29T13:29:03Z")

</div>

Closed on April 29, 2020, 1:29pm UTC

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