diff --git a/js/app.js b/js/app.js index 0ad0cae0..d2d022bc 100644 --- a/js/app.js +++ b/js/app.js @@ -454,9 +454,9 @@ app = Sammy('#main', function (sam) { sam.get('#/apps/:app/uninstall', function (c) { if (confirm('Are you sure you want to uninstall '+ c.params['app'] +' ?')) { - c.api('/app', function() { // http://api.yunohost.org/#!/user/user_delete_delete_4 + c.api('/app/'+ c.params['app'], function() { // http://api.yunohost.org/#!/app/app_remove_delete_4 c.redirect('#/apps'); - }, 'DELETE', { 'app': c.params['app'] } ); + }, 'DELETE'); } else { store.clear('slide'); c.redirect('#/apps/'+ c.params['app']);