Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions frontend/src/app/main/data/auth.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,11 @@
ptk/WatchEvent
(watch [_ state _]
(let [profile-id (:profile-id state)
;; Rewrite "foss-<app>.<domain>" → "foss.<domain>" so we land on the portal
;; (outside ForwardAuth) instead of Penpot's own root, which would silently re-auth.
;; Strip the first subdomain so we land on the portal (outside ForwardAuth)
;; instead of Penpot's own root, which would silently re-auth.
host (.-host js/location)
protocol (.-protocol js/location)
portal-host (.replace host #"^[^.]*\." "moneta.")
portal-host (.replace host #"^[^.]+\.(?=[^.]*\.[^.]*\.)" "")
portal-uri (str protocol "//" portal-host)
logged-out-ev (logged-out {:redirect-uri portal-uri})]
(->> (rx/interval 500)
Expand Down
Loading