Cleanup the parsing of links so that is done just once, and support parsing GNOME's gitlab shortlinks.