diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php
index 4fef80f0eb..aba54f6ab5 100644
--- a/wp-admin/edit-form-advanced.php
+++ b/wp-admin/edit-form-advanced.php
@@ -368,7 +368,8 @@ wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
public ? get_sample_permalink_html($post->ID) : '';
$shortlink = wp_get_shortlink($post->ID, 'post');
-if ( !empty( $shortlink ) && $shortlink !== get_permalink( $post->ID ) )
+$permalink = get_permalink( $post->ID );
+if ( !empty( $shortlink ) && $shortlink !== $permalink && $permalink !== home_url('?page_id=' . $post->ID) )
$sample_permalink_html .= '' . __('Get Shortlink') . '';
if ( $post_type_object->public && ! ( 'pending' == get_post_status( $post ) && !current_user_can( $post_type_object->cap->publish_posts ) ) ) {