The name of this function is quite ambiguous/none-intuitive, `redirectConfig` is perhaps a better name.

Unless there's a specific reason, all uses of `redirection` in the PR should IMO be replace with `redirect`. i.e. `RedirectListener`. Redirection sounds quite awkward, in the same sort of way when you find a whatever-able behavior.