Permalink
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...
1 parent 0d39a88 commit d47913d78f992cc6a387d77705926b75bdb3773d @chillu chillu committed Mar 29, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 _config.php
View
@@ -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

0 comments on commit d47913d

Please sign in to comment.