add redirect handler

This commit is contained in:
Alex Turchyn
2023-08-24 00:28:21 +03:00
parent 88968897e9
commit e1342860c4
7 changed files with 40 additions and 5 deletions
@@ -13,6 +13,16 @@ class RegistrationsController < Devise::RegistrationsController
private
def after_sign_up_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