Skip to content

Commit 156988c

Browse files
committed
Add host to default_url_options
1 parent 2596094 commit 156988c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/controllers/application_controller.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ def set_sss_id_for_user
3636
end
3737

3838
def default_url_options(options={})
39-
{ locale: I18n.locale }.merge options
39+
{
40+
locale: I18n.locale,
41+
host: ENV["HACK_URI"] || ENV["LAYERS_API_URI"] || options[:host],
42+
}.merge options
4043
end
4144

4245
def authenticate_and_redirect_back

0 commit comments

Comments
 (0)