dynamically generate redirect uri to allow app flexible url