How do I redirect a User after login page to a different Members/ Dashboard page

How do I redirect a User after login page to a different Members/ Dashboard page
I have created a front end index page with a login form but I want to redirect the user to a different page after filling their login details but I have failed to do it using Node Js and bootstrap5
Please guide me
thank you!

Hello,
There are two things required to do so:

  1. Add the browser component in app structure
  2. On the login form add new dynamic event > server connect > success and call the Go To action from the browser component there. There you can add your redirect page.

I have done that but it keeps giving me 404 Error
as you can see in the attached image.
I tried to alternate and forward to different pages but
I keep getting the same error 404

it shows

status “404”
message “/main/Home.ejs not found.”

How did you configure the redirect step exactly?

one
I created an index page and inserted a login form that is connected to server

two
Added dynamic events, Server connect > success
Action > browser goto > add browser2.goto > linked terms.ejs from go to properties and saved

You need to link to the route to this page, using the routes button.

Welcome to Wappler!

You may want to start again following the great tutorials HERE.

Your login form should not be on your index page. If your user is not logged in they should be redirected to a login page and then redirected to the index page on successful login. The tutorials linked above are excellent and show you exactly what you are trying to do.

Thank you so much
let me first watch the tutorials