Skip to content

Conversation

nullchristo
Copy link
Contributor

@nullchristo nullchristo commented Aug 19, 2025

My previous fix would leave behind a blank additional_tag_ids= query param when redirecting to /tag if all additional_tags in the intersection route were removed due to being duplicates. For instance, /tags/intersection/tag1/tag1 would redirect to /tag/tag1?additional_tag_ids=. Probably harmless but not intentional.

With this fix the additional_tag_ids param is removed if it ends up being cleared during the duplicate check, so the above example will redirect to /tag/tag1 with the additional_tag_ids param omitted.

@nullchristo nullchristo changed the title FIX: Don't leave blank additional_tags param after removing dups in intersection FIX: Don't leave blank additional_tag_ids param after removing dups in intersection Aug 19, 2025
@nullchristo nullchristo merged commit 015da9b into main Aug 19, 2025
19 checks passed
@nullchristo nullchristo deleted the fix/intersection-remove-duplicate-tags2 branch August 19, 2025 20:14
yuriyaran pushed a commit that referenced this pull request Aug 21, 2025
…n intersection (#34423)

My previous fix would leave behind a blank `additional_tag_ids=` query param when redirecting to /tag if all additional_tags in the intersection route were removed due to being duplicates. With this fix the additional_tag_ids param is removed if it ends up being cleared during the duplicate check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants