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>
commit7fd0820e6dd35031993f664da9243155f5f8d926
parent6e2a81a38603b464cc332272e467d3573289ad72
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeWed, 20 May 2026 14:27:15 +0000