Add conditional redirect for projects