diff options
author | Andreas Gohr <andi@splitbrain.org> | 2015-05-23 15:32:35 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2015-05-23 15:32:35 +0200 |
commit | 49f111354ae7007893e877ceaeaed0dd3367e8f2 (patch) | |
tree | d8b4fb05de2bf4e59f8516493aa6c800aa877567 /lib/plugins/styling | |
parent | 4f2e8bf8642a993a0a5edf32a3172eaf77645a25 (diff) | |
download | rpg-49f111354ae7007893e877ceaeaed0dd3367e8f2.tar.gz rpg-49f111354ae7007893e877ceaeaed0dd3367e8f2.tar.bz2 |
avoid double ampersand in url
Diffstat (limited to 'lib/plugins/styling')
-rw-r--r-- | lib/plugins/styling/script.js | 2 |
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 |