--- a/mouchak/static/js/editor.js +++ b/mouchak/static/js/editor.js @@ -91,7 +91,7 @@ var Pages = Backbone.Collection.extend({ model: M.types.model.Page, - url: '/page' + url: M.PageURL() }); /* view to manage each page and their properties - change page properties, --- a/mouchak/static/js/models.js +++ b/mouchak/static/js/models.js @@ -117,7 +117,7 @@ customMenu: false }, url: function() { - return '/menu/' + this.id; + return M.MenuURL() + this.id; }, initialize: function() { this.id = this.get('id'); --- a/mouchak/templates/index.html +++ b/mouchak/templates/index.html @@ -34,6 +34,8 @@