corrected redirect errors in locations controller