fix redirect when in project