lib/nexmo_developer/app/helpers/application_helper.rb in station-0.0.106 vs lib/nexmo_developer/app/helpers/application_helper.rb in station-0.0.107
- old
+ new
@@ -32,9 +32,11 @@
canonical_path.prepend(canonical_base)
end
def canonical_base
+ return "https://#{ENV['HEROKU_APP_NAME']}.herokuapp.com" if ENV['HEROKU_APP_NAME']
+
canonical_base_from_config || request.base_url
end
def dashboard_cookie(campaign)
# This is the first touch time so we only want to set it if it's not already set