The redirection to the login page works well, but after login, I get redirected to the correct controller but without the query parameters I had in the original request.
Is there a way around this that doesn’t involve using custom local storage entries/cookies? Am I doing something wrong?
I still don’t know how to preserve query params, but I have solved my own issue by using url params instead of query params (so the route is now /keybase-proofs/new-proof/:username/:kb_username/:sig_hash).
I assumed it was the right way to do it since the query params get lost in the transition. Perhaps I am doing something wrong with destination_url or the redirection to login?
To test it, replace the value of the username query param with your username. The route code is in routes/new-proof.js.es6 and it looks basically the same as the code you posted.