Resolve "prevent open redirect on login"
Attempts to resolve any URL/route passed as a
next param to the
login view. Routes that do not exist in the route will be removed and replaced with
/library to push users to
library. Any internal routes will push users as expected.