mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
add redirect handler
This commit is contained in:
1 parent
88968897e9
commit
e1342860c4
7 files changed
+40
-5
No files matched your search
@@ -12,6 +12,16 @@ class SessionsController < Devise::SessionsController
|
||||
|
||||
private
|
||||
|
||||
def after_sign_in_path_for(...)
|
||||
if params[:redir].present?
|
||||
return console_redirect_index_path(redir: params[:redir]) if params[:redir].starts_with?(Docuseal::CONSOLE_URL)
|
||||
|
||||
return params[:redir]
|
||||
end
|
||||
|
||||
super
|
||||
end
|
||||
|
||||
def require_no_authentication
|
||||
super
|
||||
|
||||
|
||||
Reference in new issue
Block a user