Skip to content

Commit

Permalink
Add /content redirect to Ember admin.
Browse files Browse the repository at this point in the history
Closes #2746
- Adds content route to router
- Content route transitions to posts route in the beforeModel hook.
  • Loading branch information
novaugust committed May 16, 2014
1 parent f1a3f1a commit a29289c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/client/router.js
Expand Up @@ -25,6 +25,8 @@ Router.map(function () {
this.route('apps');
});
this.route('debug');
//Redirect legacy content to posts
this.route('content');
});

export default Router;
export default Router;
7 changes: 7 additions & 0 deletions core/client/routes/content.js
@@ -0,0 +1,7 @@
var ContentRoute = Ember.Route.extend({
beforeModel: function () {
this.transitionTo('posts');
}
});

export default ContentRoute;

0 comments on commit a29289c

Please sign in to comment.