Replace fixed redirect url with one generated in config.js