diff --git a/inc/html.php b/inc/html.php
index 088f8d3c5b81ec36cb79b5447982751a25e8ee6d..a8761ad4a283bb9147426f1ea5139fbb87e8226a 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -1188,6 +1188,7 @@ function html_edit(){
         echo p_locale_xhtml($data['intro_locale']);
     }
 
+    $form->addHidden('target', $data['target']);
     $form->addElement(form_makeOpenTag('div', array('id'=>'wiki__editbar')));
     $form->addElement(form_makeOpenTag('div', array('id'=>'size__ctl')));
     $form->addElement(form_makeCloseTag('div'));