From 2612e429af202633bc1472a46157d8803bf7037c Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 26 Dec 2017 14:06:27 +0100 Subject: Mount Refinery under suburl if specified in environment. This is to make sure all generated url's within the application uses the correct base URL. --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 2eb025f..0c10b0d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,7 +5,7 @@ BetaWebApp::Application.routes.draw do # If you would like to change where this extension is mounted, simply change the :at option to something different. # # We ask that you don't use the :as option here, as Refinery relies on it being the default of "refinery" - mount Refinery::Core::Engine, :at => '/' + mount Refinery::Core::Engine, at: ENV['RAILS_RELATIVE_URL_ROOT'] || '/' # The priority is based upon order of creation: # first created -> highest priority. -- cgit v1.2.3