Updated url based on redirect contents

This should resolve issue #9