EPRA Forums are now open for registration.
Discover a new way to learn from the very best practitioners and resources in the industry.
Live. Online. Free.

This page is not meant for public viewing. If you are seeing this page, somehing has gone wrong.

 

Please notify lee.murray@sdmyers.com of this issue.

Here is the code used on this page.

When the member arrives at /sandboxx there are options:

  1. If a member IS NOT logged in, they remain on /sandboxx.

  2. If a member IS logged in they are sent to /home

  3. If a member IS NOT logged in, then they LOG IN, they are automatically sent to /home

// For full API documentation, including code examples, visit https://wix.to/94BuAAs

 

import wixLocation from 'wix-location';

import wixUsers from 'wix-users';

 

$w.onReady(() => {

if (wixUsers.currentUser.loggedIn) {

wixLocation.to('/home');

}

wixUsers.onLogin(user => {

wixLocation.to('/home');

})

});

Here is how that code will be used on /home.

When the member arrives at /home there are options:

  1. If a member IS NOT logged in, they remain on /home.

  2. If a member IS logged in they are sent to /memberhome

  3. If a member IS NOT logged in, then they LOG IN, they are automatically sent to /memberhome

// For full API documentation, including code examples, visit https://wix.to/94BuAAs

 

import wixLocation from 'wix-location';

import wixUsers from 'wix-users';

 

$w.onReady(() => {

if (wixUsers.currentUser.loggedIn) {

wixLocation.to('/memberhome');

}

wixUsers.onLogin(user => {

wixLocation.to('/memberhome');

})

});

EPRA FORUMS: Registration is now OPEN!

epra-logo-b (002)_edited.png
  • Facebook
  • Instagram