{"version":"2.1.281","anchor":"url-canonicalization-helpers-added","canonical_anchor":"url-canonicalization-helpers-added","heading":"URL canonicalization helpers added","tier":"internal","area":"Elsewhere","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281\/e\/url-canonicalization-helpers-added","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281","markdown":"### URL canonicalization helpers added\n\nNew URL helpers reject any address that does not parse back identically, and can strip a URL's query, fragment or trailing slash\n\n**Unclear.** The finding does not say which features use these helpers.\n\n**What**\n\nClaude Code has new helper functions for tidying up web addresses (URLs). One of them parses a URL strictly: the address is rejected unless parsing it with the standard web URL rules (WHATWG) gives back the same scheme, host, path and query. The scheme is the `https:` part, the host is the site name, the path is the part after the site name, and the query is the part after a `?`.\n\nOther helpers remove one piece of a URL:\n\n- The query, the part after `?`\n\n- The fragment, the part after `#`\n\n- The trailing slash at the end of the path\n\n**Why**\n\nThe strict check turns away addresses whose meaning changes when they are parsed, so the rest of the program only works with URLs that read the same way everywhere. The stripping helpers let two spellings of the same page be treated as one address.\n\n- Area: Elsewhere\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}