set oauth url based on window location