0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-11 23:31:21 -05:00

Merge pull request #5082 from penpot/superalex-fix-challenge-redirect-with-parameters

🐛 Fix challenge redirect with parameters
This commit is contained in:
Alejandro 2024-09-11 11:33:45 +02:00 committed by GitHub
commit ea7768117c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -143,7 +143,9 @@
(if (and (= :authorization (:type data))
(= :challenge-required (:code data)))
(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/throw cause))))