From a29289c448078f4e173726266d715cbb18fd11a4 Mon Sep 17 00:00:00 2001 From: Matt Enlow Date: Wed, 14 May 2014 18:11:46 -0600 Subject: [PATCH] Add /content redirect to Ember admin. Closes #2746 - Adds content route to router - Content route transitions to posts route in the beforeModel hook. --- core/client/router.js | 4 +++- core/client/routes/content.js | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 core/client/routes/content.js diff --git a/core/client/router.js b/core/client/router.js index 46d7f293a06e..1c8393fb7a03 100644 --- a/core/client/router.js +++ b/core/client/router.js @@ -25,6 +25,8 @@ Router.map(function () { this.route('apps'); }); this.route('debug'); + //Redirect legacy content to posts + this.route('content'); }); -export default Router; \ No newline at end of file +export default Router; diff --git a/core/client/routes/content.js b/core/client/routes/content.js new file mode 100644 index 000000000000..e96035085b74 --- /dev/null +++ b/core/client/routes/content.js @@ -0,0 +1,7 @@ +var ContentRoute = Ember.Route.extend({ + beforeModel: function () { + this.transitionTo('posts'); + } +}); + +export default ContentRoute; \ No newline at end of file