QDoc: Restrict URL passthrough to external pages


The link resolver carries an explicit-URL short-circuit so that pages
declared with \externalpage retain their author-supplied address
unchanged. The condition that selects the short-circuit checks only
whether the URL contains an absolute scheme (such as http:// or
https://). However, every kind of QDoc page loaded from a dependency
.index-file also arrives with a fully-qualified URL embedded in the
upstream index. In doc-snapshots builds, this makes every cross-module
reference in the snapshot become a link off the snapshot back to the
production site.

The link resolver now passes a URL through only when the node was
declared with \externalpage. Other nodes that carry an explicit URL
flow through the same recompute path as nodes loaded from an index,
so the snapshot's output layout drives the rendered href instead of
whatever address the source file or dependency happened to embed.

Fixes: QTBUG-146895
Change-Id: I6e28b6639ee81eb892d94aca021a5fab787e66bb
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit594ca9ce8ad31cbaaecdf8ade51046914ca171bd
parenta3589225edafd6318c9fc072bb30223b865cd275
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeThu, 21 May 2026 08:24:33 +0000