Ionic2 routes

I am building app which will work on browser as well and while testing I noticed that it doesn’t have full routes on I push pop.
how can I get localhost/dashboard to display dashboard page and xyz page on localhost/dashboard/xyz
and also how to get route redirect, like if I try to access dashboard if not auth redirect to login and then redirect to dashboard or get the redirect path