Function: getSafeUrlForDisplay()
function getSafeUrlForDisplay(rawUrl: string): string;
Defined in: shared/utils/urlSafety.ts:174
Returns a sanitized URL string suitable for compact UI labels.
Parametersโ
rawUrlโ
string
Returnsโ
string
Remarksโ
This uses getSafeUrlForLogging to drop credentials, query strings, hashes, and suspicious long path segments, then preserves the app's existing host-only display convention by removing the WHATWG helper slash when the input URL did not include an explicit path.