mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Merge pull request #2376 from hswolff/ember-history-support
Add HTML5 pushState support for Ember
This commit is contained in:
commit
c6874a0a44
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…
Add table
Reference in a new issue