From 49f111354ae7007893e877ceaeaed0dd3367e8f2 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 23 May 2015 15:32:35 +0200 Subject: avoid double ampersand in url --- lib/plugins/styling/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/plugins') diff --git a/lib/plugins/styling/script.js b/lib/plugins/styling/script.js index f2b4b9ebb..caedc7a1c 100644 --- a/lib/plugins/styling/script.js +++ b/lib/plugins/styling/script.js @@ -4,7 +4,7 @@ jQuery(function () { // user openend the admin page, set cookie and redirect if (jQuery('#plugin__styling').length) { DokuCookie.setValue('styling_plugin', 1); - document.location.href = document.location.href.replace(/do=admin/, ''); + document.location.href = document.location.href.replace(/&?do=admin/, ''); } // continue only if the styling Dialog is currently enabled -- cgit v1.2.3