QDoc: Recompute cross-tree hrefs in LinkResolver
Cross-tree nodes loaded from .index files can carry URLs baked with
Generator::s_outSubdir. TemplateGenerator does not update that static,
so those URLs may have the wrong relative depth for template-html output.
Route cross-tree, non-external references through HrefResolver even when
Node::url() is already set, allowing hrefForNode() to strip the baked
prefix and recompute the href for the current OutputContext.
Fixes: QTBUG-146863
Change-Id: I028dbdfa7ba267658d1789cb88e69915ea86a7c5
Reviewed-by: David Boddie <david.boddie@qt.io>
Reviewed-by: Topi Reinio <topi.reinio@qt.io>