0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-09 21:41:23 -05:00

🐛 Fix challenge redirect with parameters

This commit is contained in:
Alejandro Alonso 2024-09-11 11:17:29 +02:00
parent 3f34aa92fa
commit 5bfb39cdf6
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))))

View file

@ -13,7 +13,7 @@
[app.main.data.events :as ev]
[app.util.browser-history :as bhistory]
[app.util.dom :as dom]
[app.util.globals :as globals]
[app.util.globals :as globals]
[app.util.timers :as ts]
[beicon.v2.core :as rx]
[cuerdas.core :as str]