dvHostCanonicalUrl function
The canonical URL of the page at hostPath on this host, as the server
writes it: the public URL of the route the path means. Null without
hosts, when the page's own canonical (or none) is what the head says.
Implementation
String? dvHostCanonicalUrl(String hostPath) {
if (_current == null) return null;
final (String path, _) = _split(dvLocationFromPlatform(hostPath));
return _hosts.publicUrl(path);
}