Changed redirect logic. added validation for paths on configuration view