diff --git a/core/client/assets/lib/uploader.js b/core/client/assets/lib/uploader.js index 728fd6930e..7ab7d3ab67 100644 --- a/core/client/assets/lib/uploader.js +++ b/core/client/assets/lib/uploader.js @@ -23,7 +23,7 @@ var self = this; $dropzone.find('.js-fileupload').fileupload().fileupload("option", { - url: '/ghost/upload', + url: '/ghost/upload/', add: function (e, data) { $progress.find('.js-upload-progress-bar').removeClass('fail'); $dropzone.trigger('uploadstart', [$dropzone.attr('id')]); diff --git a/core/server.js b/core/server.js index 1ec7520ef4..168f682817 100644 --- a/core/server.js +++ b/core/server.js @@ -341,7 +341,7 @@ when.all([ghost.init(), helpers.loadCoreHelpers(ghost)]).then(function () { server.get('/ghost/debug/db/export/', auth, admin.debug['export']); server.post('/ghost/debug/db/import/', auth, admin.debug['import']); server.get('/ghost/debug/db/reset/', auth, admin.debug.reset); - server.post('/ghost/upload', admin.uploader); + server.post('/ghost/upload/', admin.uploader); server.get(/^\/(ghost$|(ghost-admin|admin|wp-admin|dashboard|signin)\/?)/, auth, function (req, res) { res.redirect('/ghost/'); }); @@ -352,7 +352,7 @@ when.all([ghost.init(), helpers.loadCoreHelpers(ghost)]).then(function () { server.get('/rss/', frontend.rss); server.get('/rss/:page/', frontend.rss); server.get('/page/:page/', frontend.homepage); - server.get('/:slug', frontend.single); + server.get('/:slug/', frontend.single); server.get('/', frontend.homepage);