mirror of
https://github.com/penpot/penpot.git
synced 2025-03-12 07:41:43 -05:00
Merge pull request #5082 from penpot/superalex-fix-challenge-redirect-with-parameters
🐛 Fix challenge redirect with parameters
This commit is contained in:
commit
ea7768117c
2 changed files with 4 additions and 2 deletions
|
@ -143,7 +143,9 @@
|
||||||
(if (and (= :authorization (:type data))
|
(if (and (= :authorization (:type data))
|
||||||
(= :challenge-required (:code data)))
|
(= :challenge-required (:code data)))
|
||||||
(let [path (rt/get-current-path)
|
(let [path (rt/get-current-path)
|
||||||
href (str "/challenge.html?redirect=" path)]
|
href (-> path
|
||||||
|
(str "/challenge.html?redirect=")
|
||||||
|
(js/encodeURIComponent))]
|
||||||
(rx/of (rt/nav-raw href)))
|
(rx/of (rt/nav-raw href)))
|
||||||
(rx/throw cause))))
|
(rx/throw cause))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue