Index: wp-includes/js/autosave.js
===================================================================
--- wp-includes/js/autosave.js	(revision 6953)
+++ wp-includes/js/autosave.js	(working copy)
@@ -47,6 +47,7 @@
 	}
 	jQuery('#autosave').html(message);
 	autosave_update_preview_link(res);
+	autosave_update_slug(res);
 	autosave_enable_buttons();
 }
 
@@ -62,10 +63,22 @@
 		}, function(permalink) {
 			jQuery('#previewview').html('<a target="_blank" href="'+permalink+'">'+previewText+'</a>');
 		});
-		
 	}
 }
 
+function autosave_update_slug(post_id) {
+	// create slug area only if not already there
+	if ( 'undefined' != typeof make_slugedit_clickable && ! jQuery('#edit-slug-box > *').get()[0] ) {
+		jQuery.post(slugL10n.requestFile, {
+			action: 'sample-permalink',
+			post_id: post_id,
+			samplepermalinknonce: jQuery('#samplepermalinknonce').val()}, function(data) {
+				jQuery('#edit-slug-box').html(data);
+				make_slugedit_clickable();
+			});
+	}
+}
+
 function autosave_loading() {
 	jQuery('#autosave').html(autosaveL10n.savingText);
 }
@@ -81,6 +94,7 @@
 	}
 	jQuery('#autosave').html(message);
 	autosave_update_preview_link(res);
+	autosave_update_slug(res);
 	autosave_enable_buttons();
 }
 
Index: wp-admin/admin-ajax.php
===================================================================
--- wp-admin/admin-ajax.php	(revision 6953)
+++ wp-admin/admin-ajax.php	(working copy)
@@ -527,7 +527,7 @@
 case 'get-permalink':
 	check_ajax_referer( 'getpermalink', 'getpermalinknonce' );
 	$post_id = isset($_POST['post_id'])? intval($_POST['post_id']) : 0;
-	die(get_permalink($post_id));
+	die(add_query_arg(array('preview' => 'true'), get_permalink($post_id)));
 break;
 case 'sample-permalink':
 	check_ajax_referer( 'samplepermalink', 'samplepermalinknonce' );
Index: wp-admin/includes/post.php
===================================================================
--- wp-admin/includes/post.php	(revision 6953)
+++ wp-admin/includes/post.php	(working copy)
@@ -604,7 +604,9 @@
 	}
 	$post_name_html = '<span id="editable-post-name" title="'.$title.'">'.$post_name_abridged.'</span><span id="editable-post-name-full">'.$post_name.'</span>';
 	$display_link = str_replace('%postname%', $post_name_html, $permalink);
-	return $display_link;
+	$return = '<strong>' . __('Permalink:') . "</strong>\n" . '<span id="sample-permalink">' . $display_link . "</span>\n";
+	$return .= '<span id="edit-slug-buttons"><a href="#post_name" class="edit-slug" onclick="edit_permalink(' . $id . '); return false;">' . __('Edit') . "</a></span>\n";
+	return $return;
 }
 
 ?>
Index: wp-admin/js/slug.js
===================================================================
--- wp-admin/js/slug.js	(revision 6953)
+++ wp-admin/js/slug.js	(working copy)
@@ -16,7 +16,7 @@
 			post_id: post_id,
 			new_slug: new_slug,
 			samplepermalinknonce: jQuery('#samplepermalinknonce').val()}, function(data) {
-				jQuery('#sample-permalink').html(data);
+				jQuery('#edit-slug-box').html(data);
 				b.html(revert_b);
 				real_slug.attr('value', new_slug);	
 				make_slugedit_clickable();
Index: wp-admin/edit-form-advanced.php
===================================================================
--- wp-admin/edit-form-advanced.php	(revision 6953)
+++ wp-admin/edit-form-advanced.php	(working copy)
@@ -71,18 +71,12 @@
 <h3><?php _e('Title') ?></h3>
 <div class="inside">
 	<input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape($post->post_title); ?>" id="title" />
-<?php
-	$sample_permalink_html = get_sample_permalink_html($post->ID);
-	if ($post->ID && $sample_permalink_html):
-?>
-	<div id="edit-slug-box" style="display: <?php echo $post->ID? 'block' : 'none';?>">
-		<strong><?php _e('Permalink:'); ?></strong>
-		<span id="sample-permalink"><?php echo $sample_permalink_html; ?></span>
-		<span id="edit-slug-buttons"><a href="#post_name" class="edit-slug" onclick="edit_permalink(<?php echo $post->ID; ?>);return false;"><?php _e('Edit');?></a></span>
+<?php $sample_permalink_html = get_sample_permalink_html($post->ID); ?>
+	<div id="edit-slug-box">
+<?php if ( ! empty($post->ID) && ! empty($sample_permalink_html) ) : 
+	echo $sample_permalink_html;
+endif; ?>
 	</div>
-<?php
-	endif;
-	?>
 </div>
 </div>
 
