fix: match redirect
and rewrite
destination types
#34617
Merged
redirect
and rewrite
destination types
#34617