fix(proxy): improve redirect proxy logic (#11517)
* refactor(proxy): improve redirect proxy code
* match name
* correct comment
* remove unused type import
* improve
* more cleanups
* simplify
* simpler
* refactor
* simplify
* more
* forward all params
* add/fix tests
* fix comment
* drop .only
* add comment