in bubble we typically use url parameters as
https://www.mydomain.com/mypage?firstname=John&lastname=Doe
lastname = doe= john
lastname = doe
this works
But if i get url as
https://www.mydomain.com/mypage#firstname=John&lastname=Doe
lastname = doe is identified BUT
first name
is not identified because of #
actually i get these parameters externally and i cant change the format, how can i get the value after #
WILSON
March 15, 2023, 8:37am
2
change it in “?”
“?” is use for first parameter
i managed to do this
https://www.mydomain.com/mypage?gender=male&#firstname=John&lastname=Doe
But still i cant get the parameter#firstname
value
the point is i cant edit this value
#firstname=John&lastname=Doe
because i am getting it externally
WILSON
March 15, 2023, 8:46am
4
i cant change #firstname=John&lastname=Doe
because i am getting it externally
lets see this
https://www.mydomain.com/mypage?gender=male&#firstname=John&lastname=Doe
here i easily get values of
gender
lastname
but the value of
#firstname
is empty, must be because of #
NigelG
March 15, 2023, 9:53am
7
The #
has a particular meaning in a URL - it is called a fragment and won’t be sent to the back end.
any goarounds to get the data ?
i cant change #firstname=John&lastname=Doe
because i am getting it externally
Where are you getting it from? And why are they using a fragment identifier? (and what is it supposed to mean exactly?)
Run regex on the external data, or use the find and replace function to replace the # with a ?
Get it from supabase user authentication service.
After magic link is sent to the user email they are redirected to the site with this parameters essentially I am getting #token-acess=abc
Is there any other way I can use that token access to verify the current user?
Find and replace does not help to restructure URL 🥲 in address bar
It should, especially the regex part. If you can grab the url using “This Url” you can run regex or find and replace, then you can either navigate to that page (open external site)
They key here will be grabbing the url and doing work to it. Get parameter from url will NOT work with #
1 Like
system
Closed
May 24, 2023, 8:24am
15
This topic was automatically closed after 70 days. New replies are no longer allowed.