legalPageUrl function
Returns a URL for the given legal path on the game's own host, or null
if appHost is not configured.
The server serves /terms, /privacy and /delete-account on the same
host as the app's deep links. That is safe because the app's App Links
intent-filter is scoped to the /join and /game prefixes (see the
deep-link guide), so
legal paths are never intercepted and open in the browser. UI callers use
Link so browsers retain native link semantics and Android delegates the
external destination to the platform.
Implementation
Uri? legalPageUrl(String path, {required String? appHost}) =>
appHost != null ? Uri.https(appHost, path) : null;