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