mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -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();
|
||||
|
||||
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
|
||||
});
|
||||
|
||||
|
|
|
@ -58,5 +58,5 @@ module.exports = function (server) {
|
|||
});
|
||||
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