URL query parameter not save in variable in production mode, why?

Hi there,

I’ve set up a login with Outseta and generated a unique token that I’m passing through the URL, for example:

However, when I land on the WeWeb page (production mode), the URL parameter isn’t being captured in my query variable.

Initially, I suspected the page was loading too quickly, so I added a 10-second delay but the issue persists. I’m not sure what else could be causing this.

  • Query variable name: access_token
  • URL parameter format: /post-login/?access_token=ey…

Despite this setup, the access_token isn’t being populated. Any ideas on what might be going wrong?

You need to either explicitly save the query parameter in a variable, or pass the query forward in your action by binding it to the proper setting.

Thank you for your answer!

It’s already the case… am I missing something?

Are you preserving the variable on navigation? What type of variable is the token_from_outseta?

Type text for token_from_outseta

Are you preserving the variable on navigation” I thought it could have been the issue indeed but not I have edited it, republished, deleted caches and still the same issue.

@Roberto, the issue might be that the page is loading before the URL parameter gets added, so the query variable isn’t being captured. Have you encountered this timing issue before?

@Davy not sure if I’m following correctly

Initially, I suspected the page was loading too quickly, so I added a 10-second delay but the issue persists. I’m not sure what else could be causing this.

I only see a delay in the true path, in which you then navigate to home. In your recording at 1:05, I see you login > the access_token query parameter is visible in the URL > you redirect to post-login with the query parameter > then redirects to company/dashboard > then redirects once again to home. I don’t know the difference between dashboard and home but clearly your query parameter is falling off at this stage. I think what @Broberto was pointing to is in the “navigate to home” action, you do not add the query to the queries property.

** Not sure what you’re highlighting in the false path. My understanding is that is if the access_token in the URL query parameter is less than 3 characters, which is not the case for both logins you recorded.

Yeah, this is what I mean and would be worth a shot