Change the URL of the WP logo on admin bar at the top left corner

Hi, I changed the WP logo on the admin bar with some basic CSS

#wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {

and Now I need to override the URL that it leads on when clicked, from to my custom URL.

How can I achieve this with a function?