AMI: redirect to the correct https url

Review 804 by @mglukhovsky