text: Title: Redirect to login if not authorized config not working
  Body: ## CKAN version
  CKAN v2.10.1
  ## Describe the bug
   The` ckan.redirect_to_login_if_not_authorized` configuration option in CKAN is not functioning as expected. This configuration setting is intended to redirect users to the login page when users are not logged in. 
   
   https://docs.ckan.org/en/2.10/maintaining/configuration.html#ckan-redirect-to-login-if-not-authorized
  
  