From a0044addf80d782bfc6cbe6b710e07373f472847 Mon Sep 17 00:00:00 2001 From: Djamil Legato Date: Sun, 21 Sep 2014 18:27:12 -0700 Subject: [PATCH] Fixed old twig uri in favor of new data-set uri --- themes/grav/js/pages-all.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/grav/js/pages-all.js b/themes/grav/js/pages-all.js index 204345e0..12a7bc4a 100644 --- a/themes/grav/js/pages-all.js +++ b/themes/grav/js/pages-all.js @@ -70,7 +70,7 @@ $(function(){ if (action == 'continue') { $(window).off('beforeunload'); - window.location.href = '{{ uri.route(true) }}' + ((value == 'expert') ? '/expert:1' : ''); + window.location.href = $("#admin-mode-toggle input[name=mode-switch]:checked").data('leave-url'); } else { $('input[name=mode-switch][checked]').prop('checked', true); }