Index: menu.admin.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/menu/menu.admin.inc,v
retrieving revision 1.1
diff -u -r1.1 menu.admin.inc
--- menu.admin.inc	30 Aug 2007 16:27:12 -0000	1.1
+++ menu.admin.inc	11 Sep 2007 20:08:06 -0000
@@ -174,6 +174,18 @@
     '#rows' => 1,
     '#description' => t('The description displayed when hovering over a menu item.'),
   );
+  $form['menu']['query'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Query string'),
+    '#default_value' => isset($item['options']['query']) ? $item['options']['query'] : '',
+    '#description' => t('A GET query string to append to the link.'),
+  );
+  $form['menu']['fragment'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Anchor'),
+    '#default_value' => isset($item['options']['fragment']) ? $item['options']['fragment'] : '',
+    '#description' => t('The anchor part of the link.'),
+  );
   $form['menu']['expanded'] = array(
     '#type' => 'checkbox',
     '#title' => t('Expanded'),
@@ -230,6 +242,12 @@
 function menu_edit_item_submit($form, &$form_state) {
   $item = $form_state['values']['menu'];
   $item['options']['attributes']['title'] = $item['description'];
+  if (!empty($item['query'])) {
+    $item['options']['query'] = $item['query'];
+  }
+  if (!empty($item['fragment'])) {
+    $item['options']['fragment'] = $item['fragment'];
+  }
   list($item['menu_name'], $item['plid']) = explode(':', $item['parent']);
   if (!menu_link_save($item)) {
     drupal_set_message(t('There was an error saving the menu link.'), 'error');

