Index: includes/path.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/path.inc,v retrieving revision 1.48 diff -u -p -r1.48 path.inc --- includes/path.inc 20 Nov 2009 06:12:45 -0000 1.48 +++ includes/path.inc 1 Dec 2009 05:03:06 -0000 @@ -332,7 +332,7 @@ function drupal_is_front_page() { if (!isset($is_front_page)) { // As drupal_path_initialize updates $_GET['q'] with the 'site_frontpage' path, // we can check it against the 'site_frontpage' variable. - $is_front_page = ($_GET['q'] == drupal_get_normal_path(variable_get('site_frontpage', 'node'))); + $is_front_page = ($_GET['q'] == variable_get('site_frontpage', 'node')); } return $is_front_page; Index: modules/system/system.admin.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.admin.inc,v retrieving revision 1.229 diff -u -p -r1.229 system.admin.inc --- modules/system/system.admin.inc 1 Dec 2009 00:39:34 -0000 1.229 +++ modules/system/system.admin.inc 1 Dec 2009 05:04:36 -0000 @@ -1418,7 +1418,7 @@ function system_site_information_setting $form['site_frontpage'] = array( '#type' => 'textfield', '#title' => t('Default front page'), - '#default_value' => 'node', + '#default_value' => drupal_get_path_alias('node'), '#size' => 40, '#description' => t('The home page displays content from this relative URL. If unsure, specify "node".'), '#field_prefix' => url(NULL, array('absolute' => TRUE)) . (variable_get('clean_url', 0) ? '' : '?q='), @@ -1468,8 +1468,10 @@ function system_site_information_setting if ($error = user_validate_mail($form_state['values']['site_mail'])) { form_set_error('site_mail', $error); } + // Get the normal path of the font page. + form_set_value($form['site_frontpage'], drupal_get_normal_path($form_state['values']['site_frontpage']), $form_state); // Validate front page path. - $item = array('link_path' => drupal_get_normal_path($form_state['values']['site_frontpage'])); + $item = array('link_path' => $form_state['values']['site_frontpage']); if (!menu_valid_path($item)) { form_set_error('site_frontpage', t("The path '@path' is either invalid or you do not have access to it.", array('@path' => $item['link_path']))); } Index: modules/system/system.install =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.install,v retrieving revision 1.422 diff -u -p -r1.422 system.install --- modules/system/system.install 11 Nov 2009 17:06:30 -0000 1.422 +++ modules/system/system.install 1 Dec 2009 05:01:56 -0000 @@ -2767,6 +2767,13 @@ function system_update_7045() { } /** + * Normalize the front page path variable. + */ +function system_update_7046() { + variable_set('site_frontpage', drupal_get_normal_path(variable_get('site_frontpage', 'node'))); +} + +/** * @} End of "defgroup updates-6.x-to-7.x" * The next series of updates should start at 8000. */