Adding effective use of REDIRECT_URL option.

The options REDIRECT_URL was not used in the project while it should be.