Changes dashboard routing to the real dashboard.aspx
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
app.config(function ($routeProvider) {
|
||||
$routeProvider
|
||||
.when('/:section', {
|
||||
templateUrl: "views/common/dashboard.html"
|
||||
templateUrl: function (rp) {
|
||||
rp.url = "dashboard.aspx?app=" + rp.section;
|
||||
return 'views/common/legacy.html';
|
||||
}
|
||||
})
|
||||
.when('/framed/:url', {
|
||||
//This occurs when we need to launch some content in an iframe
|
||||
@@ -34,8 +37,8 @@ app.config(function ($routeProvider) {
|
||||
// $locationProvider.html5Mode(true); //turn html5 mode on
|
||||
});
|
||||
|
||||
app.run(['security', function (security) {
|
||||
// Get the current user when the application starts
|
||||
// (in case they are still logged in from a previous session)
|
||||
security.requestCurrentUser();
|
||||
app.run(['security', function (security) {
|
||||
// Get the current user when the application starts
|
||||
// (in case they are still logged in from a previous session)
|
||||
security.requestCurrentUser();
|
||||
}]);
|
||||
Reference in New Issue
Block a user