Added redirUrl functionality

Closes #4