set redirect uri with only origin and pathname