function location_remove_sluged( $post_link, $post, $leavename ) {

    if ( 'location' != $post->post_type || 'publish' != $post->post_status ) {
        return $post_link;
    }

    $post_link = str_replace( '/' . $post->post_type . '/', '/', $post_link );

    return $post_link;
}
add_filter( 'post_type_link', 'location_remove_sluged', 10, 3 );