Add in Wrapper template around DatePickerRange template to have better layout of...
[civicrm-core.git] / ang / crmApp.js
index 0726a045040cd0221783c60dc431a9fea3089462..c7bb81e29bc9ad1a090e9a020b0f4ad189885156 100644 (file)
@@ -5,6 +5,16 @@
   var crmApp = angular.module('crmApp', CRM.angular.modules);
   crmApp.config(['$routeProvider',
     function($routeProvider) {
+
+      if (CRM.crmApp.defaultRoute) {
+        $routeProvider.when('/', {
+          template: '<div></div>',
+          controller: function($location) {
+            $location.path(CRM.crmApp.defaultRoute);
+          }
+        });
+      }
+
       $routeProvider.otherwise({
         template: ts('Unknown path')
       });