# Passing Data to Index page through URL

**URL:** <https://forum.bubble.io/t/passing-data-to-index-page-through-url/227962>\
**Category:** Need help\
**Created:** [October 11, 2022, 8:24pm UTC](https://forum.bubble.io/t/passing-data-to-index-page-through-url/227962 "2022-10-11T20:24:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![whywork](https://avatars.discourse-cdn.com/v4/letter/w/bb73d2/32.png) [@whywork](https://forum.bubble.io/u/whywork)\
**Post date:** [October 11, 2022, 8:24pm UTC](https://forum.bubble.io/t/passing-data-to-index-page-through-url/227962/1 "2022-10-11T20:24:12Z")

</div>

Hi all, I have an index page and I’m trying to pass some data to it (ID number in this case). The index page [https://testament.ink](https://testament.ink) looks like this:

 ![Screenshot 2022-10-11 at 22.09.56](https://us1.discourse-cdn.com/bubble/original/3X/8/6/86ee5b0320f5bf91da23bfa856eb43acb98c26c3.jpeg)

What I want to do is be able to pass the ID number through URL and import it into the ID input field. Like this: [https://testament.ink/988932](https://testament.ink/988932)  
Unfortunately, when I do just that, [bubble.io](http://bubble.io) thinks it’s a page and I get a 404 error message.

 ![Screenshot 2022-10-11 at 22.09.36](https://us1.discourse-cdn.com/bubble/original/3X/c/9/c9a9ad99c254874670080f12d5221b49ed60645b.jpeg)

If, however I use the full path: [https://testament.ink/index/988932](https://testament.ink/index/988932) then it works like a charm.

 ![Screenshot 2022-10-11 at 22.09.13](https://us1.discourse-cdn.com/bubble/original/3X/3/1/31449063c2c9beba0ea61b3d997e72b93dcdfb39.jpeg)

I’m using “path” type, I do not wish to use “paramaters” as it’s not pleasing to the eye.

 ![Screenshot 2022-10-11 at 22.10.59](https://us1.discourse-cdn.com/bubble/original/3X/2/3/2352a44856e57bef47c588cc34580de26b4c3b5b.png)

So, to reiterate what I want is to be able to send someone a linke like this: [https://testament.ink/xxxx](https://testament.ink/xxxx) and upon clicking on it they will be taken to the home page and the ID placeholder will be filled with xxxx.

I thank you in advance.

---

<div class="post-metadata">

**Author:** ![lantzgould](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@lantzgould](https://forum.bubble.io/u/lantzgould)\
**Post date:** [October 11, 2022, 9:02pm UTC](https://forum.bubble.io/t/passing-data-to-index-page-through-url/227962/2 "2022-10-11T21:02:53Z")

</div>

Try using arbitrary text.

Demo:

> **[Bubble - Visual Programming](https://one-bubble-at-a-time.bubbleapps.io/version-test/arbitrary)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

Editor:

> **[Bubble Editor - one-bubble-at-a-time](https://bubble.io/page?type=page&name=arbitrary&id=one-bubble-at-a-time&tab=tabs-1)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

---

<div class="post-metadata">

**Author:** ![whywork](https://avatars.discourse-cdn.com/v4/letter/w/bb73d2/32.png) [@whywork](https://forum.bubble.io/u/whywork)\
**Post date:** [October 11, 2022, 9:32pm UTC](https://forum.bubble.io/t/passing-data-to-index-page-through-url/227962/3 "2022-10-11T21:32:08Z")

</div>

It doesn’t really solve my problem as you’re passing the data to a second page which is not the index page. The problem I’m facing (I think) is that Bubble thinks that what comes after the " / " is supposed to be a page and it can’t find it. If I type in [Testament](https://testament.ink/index/904922) then it works, when I omit ‘index’ it doesn’t

---

<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:** [October 12, 2022, 12:59am UTC](https://forum.bubble.io/t/passing-data-to-index-page-through-url/227962/4 "2022-10-12T00:59:13Z")

</div>

That simply does not work in Bubble because `/` is the homepage and `/something` is the page named “something”. So the xxxx needs to be a querystring parameter.

One solution that may or may not be to your liking is that you CAN have a page (that’s not your index page) that takes a parameter without the ?. For a very very very very long explication of this (and lots of dumb comments from folks in the peanut gallery), see:

> [@Direct links for users?](http://forum.bubble.io/t/direct-links-for-users/50535/2):
>
> The answer to this question – that you cannot have [yoururl.com/arbitrary\_alias](http://yoururl.com/arbitrary_alias) without messing up essential 404 behavior – is most decidedly conclusive (as of this writing, 02/25/2019). While you can do it, the pages that you seem to direct to are throwing 404 errors back to the agent viewing the pages. So such pages will never be indexed properly. However, you can have AWESOME /u/arbitrary\_alias pages that DO NOT break Bubble’s built-in “send data” functionality, while still enabling a frien…

---

<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:** [October 12, 2022, 1:09am UTC](https://forum.bubble.io/t/passing-data-to-index-page-through-url/227962/5 "2022-10-12T01:09:56Z")

</div>

But let me stress: There’s nothing wrong with testament.ink?xxxx… I mean, are you SPEAKING this URL to people? Somehow I doubt it… **BUT… If you ARE** (i.e., there’s only a limited set of these redirects) you can manually create a redirect in your app for /xxxx, but there’s no _programmatic_ way of doing this at runtime. It takes your intervention on the development side. (It’s exactly analogous to if you have some sort of static site and now you say, "OK, I want `www.whatever.com/podcast` redirect to `www.whatever.com/?source=podcast`. You simply redirect /podcast and forego ever having a _real_ page at route /podcast. I’m not sure why Bubblers get so hung up on dumb stuff like this. I guess because in the early going, they are not yet web developers.)

Usually this complaint comes up when people want LinkedIn style usernames/ids (where, `linkedin.com/myname` resolves to the user’s profile page). The reason you can’t have this particular nice thing is that you don’t have programmatic control over your server (or I guess more your custom “routes”) in Bubble (because you’re sharing a server with other folks) . But do note that not every site enables that. For example, Reddit user pages are under /u/ and nobody seems to mind (in fact, it’s widely understood that a user’s Reddit profile will be under /u/username).

---

<div class="post-metadata">

**Author:** ![lantzgould](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@lantzgould](https://forum.bubble.io/u/lantzgould)\
**Post date:** [October 12, 2022, 3:07am UTC](https://forum.bubble.io/t/passing-data-to-index-page-through-url/227962/6 "2022-10-12T03:07:55Z")

</div>

Ah, ya I misread your post.

I echo Keith’s answers

---

<div class="post-metadata">

**Author:** ![whywork](https://avatars.discourse-cdn.com/v4/letter/w/bb73d2/32.png) [@whywork](https://forum.bubble.io/u/whywork)\
**Post date:** [October 12, 2022, 6:50am UTC](https://forum.bubble.io/t/passing-data-to-index-page-through-url/227962/7 "2022-10-12T06:50:40Z")

</div>

Ok, now I understand. If it can’t be done it can’t be done. Thanks a lot Keith, I appreciate the lengthy information

---

<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:** [December 20, 2022, 8:24pm UTC](https://forum.bubble.io/t/passing-data-to-index-page-through-url/227962/8 "2022-12-20T20:24:19Z")

</div>

Closed on December 20, 2022, 8:24pm UTC

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