Can a wix site automatically scroll to an anchor or move to another page after a user logs in?
Hi,
Have you tried looking on the Wix-location API? (https://www.wix.com/code/reference/wix-location.html#to)
Hello,
Yup I can get wix-location to work on the page, but I only want it to work after they log in and I do not want to have to use an event for the scroll or the page change. That’s where I am stuck.
Scratch that… I needed to add .then.
.then( () => {
wixLocation.to(URL_GOES_HERE); } ); }
It works now!
Thanks,
Hello…
You can use the code or…
You have a main page, for example “click login please” and on this page there is the login button that you will add manually, common button. You change the name of the button, write ‘login’ and to do link button to the second page (or any page)
The first page: You give permission for anyone to access.
The second page: You put a password restriction. (Password o login member)
What will happen: When the user accesses the first page and clicks the login button, it will be directed to a unique wix page for login, this page isnt created by you (by wix). After the user enters the password it will be directed to the second page that is the welcome page created by you.
Hello,
Do you know if it’s possible to set separate landing pages for site members after login (through onLogin)?
Thank you in advance!