From c6b167fcf290c415b8d1903237fb5405b7213405 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 27 Oct 2014 10:43:27 -0400 Subject: [PATCH] Set newurl on admin actions to stay on the page By setting newurl, the browser state is replaced with the base configuration URL, so that user actions like hitting reload do not end up trying to trigger another change or an enablement/disablement of a plugin. It also insures actions are not accidentally triggered when hitting the back button. Signed-off-by: Simo Sorce Reviewed-by: Patrick Uiterwijk --- ipsilon/admin/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipsilon/admin/common.py b/ipsilon/admin/common.py index 3d5313a..530cb22 100755 --- a/ipsilon/admin/common.py +++ b/ipsilon/admin/common.py @@ -230,7 +230,8 @@ class AdminPlugins(AdminPage): 'message_type': message_type, 'available': plugins['available'], 'enabled': enabled, - 'baseurl': self.url} + 'baseurl': self.url, + 'newurl': self.url} if self.order: targs['order_name'] = '%s_order_form' % self.name targs['order_action'] = self.order.url -- 2.20.1