Skip to content

normalizeUrl

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/tours/tour-targeting.ts

Normalize a URL for comparison: drop the hash, collapse a trailing slash on the path. Querystrings are KEPT (rules may target them); a rule value without a query still matches via prefix rules.

Signature

ts
function normalizeUrl(raw: string): string

Parameters

NameType
rawstring

Returns: string

Was this page helpful?

Download as PDF