# in url parameter

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 #

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#firstnamevalue

the point is i cant edit this value
#firstname=John&lastname=Doe because i am getting it externally

Try this

https://www.mydomain.com/mypage?gender=male&firstname=John#lastname=Doe

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 #

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

image

image

2 Likes

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