Whenever a user logs in using a popup or my global menu, I’d like to pass some data through a URL parameter. This is useful for many reasons, e.g. telling the app which page they were on before logging in or connecting the logged-in user to some data that was being worked on before logging in.
I know that I can add a URL parameter by selecting Go to page... and then checking Send more parameters to the page
If you choose the current page when you do this, it doesn’t even refresh, it just adds the URL params to the page.
However, reusable elements could be on any page, and there’s no way to tell it to go to a dynamic page (“Current Page”). So I’m not seeing an easy way to add a URL parameter to a page.
Even with a reusable element, I would think the page someone is going to be navigated to from some sort of action performed from the element would not be different from other instances of the same reusable element. So, why couldn’t you just have a generic page it navigates to, send the parameters to that page, and have your conditionals on other elements firing if/then on said parameters?
This needs to work the first time a user lands on a page, e.g. after typing the domain into the browser or landing from a Google search, so there is not a reliable page it’s coming from.
I don’t want to send the user to another page (or even refresh the current page). I want to just add a URL parameter to the URL of the current page without doing anything else.
Just use a go to page > same page | send parameter should just append a parameter to the url. Then you can hide or show other elements based off of the url parameter value
I’m not sure I’m following. I know how to trigger a workflow. What I’m trying to figure out is how to add a parameter to the current page URL without refreshing or going to a new page.
This is exactly the crux of the problem. This is a reusable element that could be used on any page. And since that dropdown (the one I screenshot in my post) does not allow dynamic content, there’s no way to make sure that the “current page” is selected.
A user who already has an account visits the app from a new computer and does not log in. They add several items to their shopping cart. That shopping cart is associated with the visitor user ID. Since they’re not logged in, we can’t assign it with their actual user id.
When they click “log in” from the menu on any page, their visitor user ID is saved as a URL param and then retrieved after they log in. This can be used to find the same shopping cart again after they’ve logged in and update the user to the logged-in user.
I have not. My background is in software engineering so I’m trying to avoid the crutch of “doing it with code” unless I know that there’s not a way to do it in Bubble. For me, I could do everything in code but then I wouldn’t be learning Bubble.
Hi @doug.burden and thanks for your plugin it almost helped me solve my problem. The last issue I have is when I want to add multiple parameters… It gives me 2 parameters but with “?” instead of “&” to split them, wich doesn’t work for me… I’ve tried by putting to appen element on the page as well as adding another step on my wf with only one element, with the same result unfortunatly… Thanks a lot