Closed MasterKale closed 8 years ago
I discovered an issue in LoggedInOutlet that allowed you to load a non-public route after loading a public route. To recreate the issue, load the /login
route and then change the URL in the address bar and go to /home
. The /home
route will load because this.parentRouter.lastNavigationAttempt
will return /login
, which IS a public route.
Calling instance.urlPath
will return the route that is currently being navigated to and will redirect accordingly if the route is not in publicRoutes
.
:+1:, I noticed the same issue.
activate()
to handle a bug that enabled access to non-public routes after loading a public routepublicRoutes
to reflect values returned byComponentInstruction.urlPath
publicRoutes