Don't ignore constraints when used together with

a redirect route.

https://github.com/rails/rails/commit/402c2af55053c2f29319091ad21fd6fa6b90ee89
introduced a regression that caused redirect routes to ignore any possible
constraint objects.

Fixes #16605