How can I get the intended URL in a 404?