SIGN IN SIGN UP

feat(http): keep slashes in queryParams in redirects (#4928)

* refactor(http): extract logic into constructRedirectPath

This allows us to easily test our redirect path construction logic where we get
the relative path, the query string and construct a redirect path.

By extracting this from `redirect`, we can easily test this logic in a unit
test.

I did this so we could test some logic where slashes in query strings should be
made human-friendly for users.

* feat(testing): add tests for constructRedirectPath

Co-authored-by: Asher <ash@coder.com>
J
Joe Previte committed
506d3f43ed86dab20f9c7ab2e2e3b8713827dbe4
Parent: 1465d8d
Committed by GitHub <noreply@github.com> on 3/1/2022, 7:11:56 PM