handle errors following short URLs