Router Redirection

@ajithkrr You should create a router page:
(where you add a new page, there’s also an option to create a router page and you should select it (it can’t be a name of an already-exist static page).
Then in the routers.js file (on the back end), you should make the redirect:

//   backend/routers.js
import {ok, redirect} from 'wix-router';
import wixUsersBackend from 'wix-users-backend';
export function pagename_Router(request) {
const user = wixUsersBackend.currentUser;
const isLoggedIn = user.loggedIn; 
if(!isLoggedIn) {return ok("pagename"); }
  return redirect('/destination-page-name/' + user.id );
}