mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Add /content redirect to Ember admin.
Closes #2746 - Adds content route to router - Content route transitions to posts route in the beforeModel hook.
This commit is contained in:
parent
f1a3f1a7a5
commit
a29289c448
2 changed files with 10 additions and 1 deletions
|
@ -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
core/client/routes/content.js
Normal file
7
core/client/routes/content.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
var ContentRoute = Ember.Route.extend({
|
||||
beforeModel: function () {
|
||||
this.transitionTo('posts');
|
||||
}
|
||||
});
|
||||
|
||||
export default ContentRoute;
|
Loading…
Add table
Reference in a new issue