diff --git a/src/js/yunohost/controllers/tools.js b/src/js/yunohost/controllers/tools.js
index 05afc6fb..401d3093 100644
--- a/src/js/yunohost/controllers/tools.js
+++ b/src/js/yunohost/controllers/tools.js
@@ -281,7 +281,7 @@
y18n.t('migrations'),
disclaimers.join('
'),
function(){
- c.api('/migrations/migrate?accept-disclaimer',
+ c.api('/migrations/migrate?accept_disclaimer',
function (data) {
store.clear('slide');
c.redirect('#/tools/migrations');
@@ -299,7 +299,7 @@
function (data) {
store.clear('slide');
c.redirect('#/tools/migrations');
- }, 'POST')
+ }, 'POST');
}
});
});