Fixed redirect hardcoding from earlier commit