mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
redirect com
This commit is contained in:
1 parent
68d3efbdba
commit
f669045362
4 files changed
+11
No files matched your search
@@ -104,4 +104,10 @@ class ApplicationController < ActionController::Base
|
||||
def svg_icon(icon_name, class: '')
|
||||
render_to_string(partial: "icons/#{icon_name}", locals: { class: })
|
||||
end
|
||||
|
||||
def maybe_redirect_com
|
||||
return if request.domain != 'docuseal.co'
|
||||
|
||||
redirect_to request.url.gsub('.co/', '.com/'), allow_other_host: true, status: :moved_permanently
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user