From fd1e647ca747d03d06ed96265ef3b4fc6c098d6d Mon Sep 17 00:00:00 2001 From: Per Ploug Krogslund Date: Fri, 5 Jul 2013 12:26:06 +0200 Subject: [PATCH] Changes dashboard routing to the real dashboard.aspx --- src/Umbraco.Web.UI.Client/src/routes.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/routes.js b/src/Umbraco.Web.UI.Client/src/routes.js index ca0d80e7d7..d89dbe650c 100644 --- a/src/Umbraco.Web.UI.Client/src/routes.js +++ b/src/Umbraco.Web.UI.Client/src/routes.js @@ -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(); }]); \ No newline at end of file