diff --git a/inc/common.php b/inc/common.php
index 25d743e0b24dff8ac9957a9b97baf790301bbd2e..1db362f081860f5369f1675beefaccab9e39f811 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -1475,6 +1475,17 @@ function send_redirect($url){
     // always close the session
     session_write_close();
 
+    // work around IE bug
+    // http://www.ianhoar.com/2008/11/16/internet-explorer-6-and-redirected-anchor-links/
+    list($url,$hash) = explode('#',$url);
+    if($hash){
+        if(strpos($url,'?')){
+            $url = $url.'&#'.$hash;
+        }else{
+            $url = $url.'?&#'.$hash;
+        }
+    }
+
     // check if running on IIS < 6 with CGI-PHP
     if( isset($_SERVER['SERVER_SOFTWARE']) && isset($_SERVER['GATEWAY_INTERFACE']) &&
         (strpos($_SERVER['GATEWAY_INTERFACE'],'CGI') !== false) &&
diff --git a/lib/plugins/config/admin.php b/lib/plugins/config/admin.php
index 7cc2918f4b374393ce6b3c5889c97ad4dc96473c..49712b73f5e52ac550aac54d22d3585b04eb2af0 100644
--- a/lib/plugins/config/admin.php
+++ b/lib/plugins/config/admin.php
@@ -109,7 +109,7 @@ class admin_plugin_config extends DokuWiki_Admin_Plugin {
       elseif ($this->_changed)
         ptln('<div class="success">'.$this->getLang('updated').'</div>');
 
-      ptln('<form action="'.wl($ID).'" method="post">');
+      ptln('<form action="'.script().'" method="post">');
       formSecurityToken();
       $this->_print_h1('dokuwiki_settings', $this->getLang('_header_dokuwiki'));