Template directive: authDirect

The @authdirect() directive is used to redirect to another page when a session is active. It simply prevents the page from loading by redirecting to another page once a user session is active.
authdirect
Example: A Sample Authenticated Redirection
  @authdirect('home') //redirects to url supplied      
                
From the above, once the user section becomes active, the current page will be redirected to a new page. This is expected to be used on non-session relative pages such as index pages or pages that are only expected to be seen when user account is not active. This will help redirect to pages that are only meant to be loaded when user session account is active