Change the refname lookup to search under the base module that is being documented and all its submodules, and not just under the current module. This allows cross-linking between separate subtrees under the base module (previously links were generated only to references inside each module plus its subclasses)