Failed login redirect

Redirect from login app to dashboard is failing to fetch the user parameters and show the data of the logged in user in the dashboard.

Video

I get an error of Attempted page tried to navigate does not exist.

FYI:
Both the apps are in external folder
![Screenshot 2025-01-09 at 3.25.07 PM|690x77]
this is the login page set-up


this is dashboard page set-up

(upload://t7CmDMEsRQQkGWALQBoSVasD7OO.png)

Im not sure what is going wrong that it is unable to fetch the data

I think the issue is with window.location.href you may need to navigate with the Go to URL option.

Once you can successfully redirect from the login page to the app's main page, you should be able to fetch the current user's information either a database or the current_user object or from querying the user's database.

Also check out our docs here on setting up a login page and the flow from user credential entry to an app. Hope this helps!

Hey

the document hasn't been of much help for me. I would appreciate if you help with a detailed solution to the problem. @Jack_T and @Paulo

Hello,

So for other users running into the same issue, use current_user to access suer data.

On the login page, the button should trigger and event. If the Action of 'redirect to URL' is not working as you want, instead set the action to 'Go to App' and from there you can pass in hash params with any data you want to capture from the login app.

These hash params can include the username and password, which can be extracted from their input components with {{ }}