I have a view defined for a url \'site/main/\'. I would like to be able to have (unauthenticated) users redirected to the default \'/admin/\' page for login, then redirected to
Your request.path shouldn't be /main/. Try it without the first.
request.path
/main/