making redirection on login configurable
catching exceptions while preparing url to redirect to, close #11910
removing if statement as is not needed.
simplifying default LOGIN_REDIRECT in settings
catching KeyError to avoid logging that in
resolving string url to test if exist, and fixing KeyError
Merge pull request #1982 from aleksandra-tarkowska/login_link_config

making redirection on login configurable