Changed the way the redirection urls are generated. Used attribute getters.

tters.