Use dynamic routes in redirects