Where
packages/core/src/url.ts (normalizeUrl).
What
Spec §"Open questions" calls this out:
Bookmark URL normalization edge cases. Query string handling: ?utm_source=... parameters. Strip tracking params on save? Configurable list? Default off, add a "clean URL" toggle in settings.
Currently normalizeUrl only strips trailing slashes and non-hashbang fragments. Tracking params propagate.
Proposed shape
- Add
stripTrackingParams: boolean to settings (default false, opt-in).
- When enabled, normalize strips:
utm_*, fbclid, gclid, msclkid, ref, ref_src, plus a small editable allowlist.
- The list lives in
@gitmarks/core so all clients (extension, web UI) share it.
Caveats
Make the list configurable per-user — some sites use utm_* legitimately for non-tracking purposes (rare but real). Probably an advanced settings panel in the web UI, not the extension.
Tracked from
spec.md §"Open questions".
Where
packages/core/src/url.ts(normalizeUrl).What
Spec §"Open questions" calls this out:
Currently
normalizeUrlonly strips trailing slashes and non-hashbang fragments. Tracking params propagate.Proposed shape
stripTrackingParams: booleanto settings (default false, opt-in).utm_*,fbclid,gclid,msclkid,ref,ref_src, plus a small editable allowlist.@gitmarks/coreso all clients (extension, web UI) share it.Caveats
Make the list configurable per-user — some sites use
utm_*legitimately for non-tracking purposes (rare but real). Probably an advanced settings panel in the web UI, not the extension.Tracked from
spec.md§"Open questions".