Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

MINOR Added default redirection of /admin to /admin/security in sapph…

…ire/admin/_config.php to provide a good default if 'cms' module (and CMSMain) is not installed
  • Loading branch information...
commit d47913d78f992cc6a387d77705926b75bdb3773d 1 parent 0d39a88
@chillu chillu authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 _config.php
4 _config.php
@@ -29,6 +29,10 @@
'dev' => 'DevelopmentAdmin',
'interactive' => 'SapphireREPL',
+// Add default routing unless 'cms' module is present (which overrules this with a CMSMain controller)
+Director::addRules(20, array(
+ 'admin//$action/$ID/$OtherID' => '->admin/security'
* PHP 5.2 introduced a conflict with the Datetime field type, which was renamed to SSDatetime. This was later renamed
Please sign in to comment.
Something went wrong with that request. Please try again.