Redirect using javascript + flow

Hello all!

As all server connect runs on index page when we are talking about mobile development, I need to run via flow a redirection and load server connect with get parameter.
The problem is that parameter comes from javascript, and seems to not be working:

This is the js:

const site = data.site;
const param = data.param;

dmx.parse("flow1.run({site: 'site', param: 'param'})");`
		
console.log('site: '+site);
console.log('param: '+param);

Console log prints all and seems to be good:

File: http://localhost/ - Line 1324 - Msg: site: home
File: http://localhost/ - Line 1325 - Msg: param: My parameter

This is working, as I see both values:
action: "{{app.alert('site is '+$param.site+'and param is '+$param.param)}}"

This don’t:
action: "{{app.main.navigate('/'+$param.site,{})}}"
(Already tried action: "{{app.main.navigate('/'+$param.site)}}" too)

But this works if I set /home as a var value
action: "{{app.main.navigate('/'+app.var1.value,{})}}"

My question here is:

Does somebody know what could be happening here?

Thanks in advance

Just off the box could it be that site is a protected value? ie you can’t use it as a value for the parameter?

:smoking: :coffee::smoking: :coffee::smoking: :coffee::smoking: :coffee:

Thanks for the reply (and also the coffee and the cigarrettes, totally nedeed)
In this case, both values comes from firebase cloud.

On the first scenario, both values are displayed correctly:

So I see: “My site is home and param is 4”
I just don’t understand why this, not:

Re-question, has anybody redirect using flow and $param?

Definitely coffee does all the job :slight_smile:

dmx.app.set('FCMSite', site);
dmx.app.set('FCMParam', param);

With:

action: "{{app.main.navigate('/'+FCMSite+'/'+FCMParam,{})}}"

Works as expected.

Two things here:

  1. If something doesn’t work, find the opposite way.
  2. Still don’t knowing why $param doesn’t work on navigation, maybe it’s a bug