summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2015-05-23 15:32:35 +0200
committerAndreas Gohr <andi@splitbrain.org>2015-05-23 15:32:35 +0200
commit49f111354ae7007893e877ceaeaed0dd3367e8f2 (patch)
treed8b4fb05de2bf4e59f8516493aa6c800aa877567 /lib
parent4f2e8bf8642a993a0a5edf32a3172eaf77645a25 (diff)
downloadrpg-49f111354ae7007893e877ceaeaed0dd3367e8f2.tar.gz
rpg-49f111354ae7007893e877ceaeaed0dd3367e8f2.tar.bz2
avoid double ampersand in url
Diffstat (limited to 'lib')
-rw-r--r--lib/plugins/styling/script.js2
1 files changed, 1 insertions, 1 deletions
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