Skip to content
Snippets Groups Projects
Commit 49f11135 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

avoid double ampersand in url

parent 4f2e8bf8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment