Populate metadata before detecting redirects.