The `get_sharing_url` method in Koha::SharedContent is currently only used in the unit tests. We should either convert code to use this routine or remove it. Personally, I think it could perhaps serve a similar use to shib_ok in C4::Auth_with_shibboleth in that we could add a cached config check (which would hit the Mana server to test it's actually there) and then return undef for failure or pass through the mana base url otherwise.
It's also used in Koha::SharedContent::build_request 187 my $mana_url = get_sharing_url();
(In reply to Jonathan Druart from comment #1) > It's also used in Koha::SharedContent::build_request > > 187 my $mana_url = get_sharing_url(); Closing.