🐛 Fix challenge redirect with parameters

This commit is contained in:
Alejandro Alonso 2024-09-11 12:03:32 +02:00
parent ea7768117c
commit 6564736d3e

View file

@ -143,9 +143,9 @@
(if (and (= :authorization (:type data))
(= :challenge-required (:code data)))
(let [path (rt/get-current-path)
href (-> path
(str "/challenge.html?redirect=")
(js/encodeURIComponent))]
href (->> path
(str "/challenge.html?redirect=")
(js/encodeURIComponent))]
(rx/of (rt/nav-raw href)))
(rx/throw cause))))