Changes dashboard routing to the real dashboard.aspx

This commit is contained in:
Per Ploug Krogslund
2013-07-05 12:26:06 +02:00
parent 00ca7242b9
commit fd1e647ca7

View File

@@ -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();
}]);