implement redirect for legacy ids

this will be used from varnish to compute redirects, which will then land in webview.
I'm pretty sure we should never get here