resolve internal redirects