Fixed redirect issue on routing.