Add a method for constructing redirect URL