2.4 fix auth redirect

Someone seems to have confused the two...
Creates a endless redirect loop if trying to access a non public url