Skip to content

fix: preserve YouTube video IDs in citation URLs - #558

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
abdullah91111:fix--preserve-YouTube-video-IDs-in-citation-URLs
Jul 29, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
abdullah91111:fix--preserve-YouTube-video-IDs-in-citation-URLs

Conversation

@abdullah91111

Copy link
Copy Markdown
Contributor

Summary

Fixes citation URL aggregation for query-keyed YouTube watch URLs.

  • Preserves the v parameter for youtube.com/watch and m.youtube.com/watch.
  • Removes unrelated query parameters and fragments, including UTM parameters.
  • Prevents different YouTube videos from being merged into one citation row.
  • Uses one shared normalization helper across Citations, per-URL details, and prompt Top Sources.
  • Adds regression tests for YouTube and existing non-query-keyed behavior.

Related issue

Closes #557

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clean fix — tests included and all green locally as well. 🙌

@gkhngyk
gkhngyk merged commit 4aeec1b into ansvisor:main Jul 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Citations: query-keyed URLs (YouTube watch) lose their identity — broken links and merged counts

2 participants