define root directory redirection

This issue has been tracked since 2022-06-30.

I can't have any content in root path, besides, my company dosen't allow me have the login in the root path. so i want to when user types the url (example: localhost:3000) will be redirect to login page (localhost:300/login) automatically. how can i do that?

rezuan-riyad wrote this answer on 2022-07-11

Did you try onMount() lifecycle in your root-path component? You can navigate to login page whenever root component mounts. @Kyovint

More Details About Repo
Owner Name EmilTholin
Repo Name svelte-routing
Full Name EmilTholin/svelte-routing
Language JavaScript
Created Date 2017-11-28
Updated Date 2022-12-03
Star Count 1711
Watcher Count 21
Fork Count 151
Issue Count 59


Issue Title Created Date Updated Date