aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/test.yml4
-rw-r--r--lib/configuration.rb2
-rw-r--r--spec/helpers/link_to_helper_spec.rb4
3 files changed, 5 insertions, 5 deletions
diff --git a/config/test.yml b/config/test.yml
index 5811b1785..ef270dcf2 100644
--- a/config/test.yml
+++ b/config/test.yml
@@ -72,7 +72,7 @@ CONTACT_NAME: 'Alaveteli Webmaster'
RAW_EMAILS_LOCATION: 'files/raw_emails'
# The base URL for admin pages. You probably don't want to change this.
-ADMIN_BASE_URL: '/admin/'
+ADMIN_BASE_URL: ''
# Where /stylesheets sits under for admin pages. See asset_host in
# config/environment.rb. Can be full domain or relative path (not an
@@ -125,4 +125,4 @@ EXCEPTION_NOTIFICATIONS_TO:
MAX_REQUESTS_PER_USER_PER_DAY: 2
VARNISH_HOST: varnish.localdomain
-SKIP_ADMIN_AUTH: true \ No newline at end of file
+SKIP_ADMIN_AUTH: true
diff --git a/lib/configuration.rb b/lib/configuration.rb
index 03ca62343..79dbccf71 100644
--- a/lib/configuration.rb
+++ b/lib/configuration.rb
@@ -4,7 +4,7 @@
module Configuration
DEFAULTS = {
- :ADMIN_BASE_URL => '/admin/',
+ :ADMIN_BASE_URL => '',
:ADMIN_PASSWORD => '',
:ADMIN_PUBLIC_URL => '',
:ADMIN_USERNAME => '',
diff --git a/spec/helpers/link_to_helper_spec.rb b/spec/helpers/link_to_helper_spec.rb
index 582fe24d4..098fba008 100644
--- a/spec/helpers/link_to_helper_spec.rb
+++ b/spec/helpers/link_to_helper_spec.rb
@@ -51,11 +51,11 @@ describe LinkToHelper do
describe 'admin_url' do
context 'with no ADMIN_BASE_URL set' do
it 'should prepend the admin general index path to a simple string' do
- admin_url('unclassified').should == '/admin/unclassified'
+ admin_url('unclassified').should == '/en/admin/unclassified'
end
it 'should prepend the admin general index path to a deeper URL' do
- admin_url('request/show/123').should == '/admin/request/show/123'
+ admin_url('request/show/123').should == '/en/admin/request/show/123'
end
end