Fix variable url authorization bug