Make sure to not fall into a redirect loop