Change home-url in dashboard

Try this.
Even if you want to change “View Site” link then remove “site-name” and add “view-site” in get_node.
Thanks.

 add_action( 'admin_bar_menu', 'customize_my_wp_admin_bar', 80 );
 function customize_my_wp_admin_bar( $wp_admin_bar ) {
        $site_node = $wp_admin_bar->get_node('site-name');

        //Change link
        $site_node->href = home_url().'/velkommen';

        //Update Node.
        $wp_admin_bar->add_node($site_node);

 }