configured redirect url based on rails env