QDoc: Resolve page URL to its canonical address
The intermediate representation carries a per-page URL field that
templates and consumers read to learn where the page lives in the
rendered output. The field is meant to hold the page's own canonical
address so callers can compose link tags, suggested URLs, and diagnostic
prompts that lead a reader, or a third-party service, back to the
published page.
In practice, the field is filled from the node's authored URL only. That
URL is non-empty for nodes declared with \externalpage and for nodes
loaded from a dependency's .index file, which carry the upstream module's
published URL. For the overwhelmingly common case of a regular \page topic
in the local documentation set, the node carries no authored URL, and the
field is empty. This causes templates that consume it to render the page's
own address as a literal blank.
The page metadata extractor now fills the URL through the link
resolver. The resolver returns the node's authored URL when one exists
existing semantic for \externalpage and dependency-index nodes. It falls
back to the computed output filename otherwise. When the build config
declares a project base URL through the 'url' qdocconf variable, the
extractor prefixes that base onto the relative filename, so the rendered
field reads e.g. "https://doc.qt.io/qt-6/qstring.html" rather than just
"qstring.html".
Fixes: QTBUG-146896
Change-Id: I6c83b82fc43d13f40522e06179fcf765e5bd7bb1
Reviewed-by: Topi Reinio <topi.reinio@qt.io>