Revert "Added redirect function to dispatcher"

This reverts commit 8a45203d5d5a8d9d48e93ece0f3ff42f44d21b5b.