If user does not have permission to access
the requested page, the user is redirected
to login screen. After login, the user is
redirected to the prev. requested page now.
The same applies, whenever the user clicks
manually on the "Login" button in top navigation.
In order to have a proper redirect and for
security reason, the given redirect-uri is
verified by the router. If the route cannot
be found, the user is redirected to main page.
Refs: lerntools/base#100
If user does not have permission to access
the requested page, the user is redirected
to login screen. After login, the user is
redirected to the prev. requested page now.
The same applies, whenever the user clicks
manually on the "Login" button in top navigation.
In order to have a proper redirect and for
security reason, the given redirect-uri is
verified by the router. If the route cannot
be found, the user is redirected to main page.
Refs: lerntools/base#100