Subject: | local_module_url_prefix might be '' |
It should be possible to generate relative URLs to local modules, by setting local_module_url_prefix = ''.
However, in the format_perldoc_url sub, local_module_url_prefix is tested for truthiness before it is used, which results in a value of '' not being used and instead perldoc_url_prefix is fallen back to. Instead, it should be checked for defined-ness.
A side issue with using no prefix at all is that the target URLs must now be url-escaped -- e.g. <a href="Foo::Bar"> is interpreted by browsers as an ipv6 address, so we must use <a href="Foo%3A%3ABar"> instead.