mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Add HTML5 pushState support for Ember
- also updates associated route
This commit is contained in:
parent
9415a232b0
commit
9983e05535
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
var Router = Ember.Router.extend();
|
var Router = Ember.Router.extend();
|
||||||
|
|
||||||
Router.reopen({
|
Router.reopen({
|
||||||
//location: 'history', // use HTML5 History API instead of hash-tag based URLs
|
location: 'history', // use HTML5 History API instead of hash-tag based URLs
|
||||||
rootURL: '/ghost/ember/' // admin interface lives under sub-directory /ghost
|
rootURL: '/ghost/ember/' // admin interface lives under sub-directory /ghost
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -58,5 +58,5 @@ module.exports = function (server) {
|
||||||
});
|
});
|
||||||
server.get('/ghost/', admin.indexold);
|
server.get('/ghost/', admin.indexold);
|
||||||
|
|
||||||
server.get('/ghost/ember/', admin.index);
|
server.get('/ghost/ember/*', admin.index);
|
||||||
};
|
};
|
Loading…
Reference in a new issue