// crmApp should not provide any significant services, and no other
// modules should depend on it.
var crmApp = angular.module('crmApp', CRM.angular.modules);
+
+ // dev/core#1818 use angular 1.5 default of # instead of 1.6+ default of #!
+ crmApp.config(['$locationProvider', function($locationProvider) {
+ $locationProvider.hashPrefix("");
+ }]);
+
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')
});