Hello, I’m having a problem to connect my login page to my dynamic page.
I want to create a member area for my team. The code is working, but can not find the dynamic page i made.
import wixUsers from ‘wix-users’ ;
import wixLocation from ‘wix-location’ ;
$w . onReady ( function () {
$w ( ‘#loginNow’ ). onClick ( function (){
let email = $w ( ‘#email’ ). value ;
let password = $w ( ‘#loginPassword’ ). value ;
wixUsers . login ( email , password )
. then (()=>{
wixLocation . to ( ‘/modelinfo/{_id}’ );
})
})
})
When I use other page its work just fine.
wixLocation . to ( ‘/home’ ); <---- working
wixLocation . to ( ‘/modelinfo/{_id}’ ); <----- not working
I tried everything I could imagine, its my first time doing a website like this.
This is my database
And this is the setting of my page.
Please if someone could tell me what is wrong, im getting very frustrated about it. :S
I followed all the instructions from this post below.
Thank you. :***