From 1d1d5ed7adfdf8352ddb960293c6c07cd51af51d Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 6 Nov 2018 16:26:03 +0000 Subject: [PATCH] [IMP] web: prevent default in _onActionClicked This avoids odd behaviour when leaving a `href="#"` on a link with target=action: without preventing the default behaviour, it would first switch to the application switcher (/web/#) then actually execute the action. --- addons/web/static/src/js/views/abstract_controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/src/js/views/abstract_controller.js b/addons/web/static/src/js/views/abstract_controller.js index eb773d91057..57b3771427b 100644 --- a/addons/web/static/src/js/views/abstract_controller.js +++ b/addons/web/static/src/js/views/abstract_controller.js @@ -470,6 +470,7 @@ var AbstractController = mvc.Controller.extend(ActionMixin, { additional_context: _.extend({}, data.context) }); } + return false; }, /** * FIXME: this logic should be rethought