Prevent redirect loop for terms