Skip to content

Fix landing page tag links not filtering the feed - #7

Merged
kibotu merged 1 commit into
mainfrom
fix/landing-tag-clicks
Nov 18, 2026
Merged

kibotu merged 1 commit into
mainfrom
fix/landing-tag-clicks

Conversation

@kibotu

@kibotu kibotu commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

TL;DR

  • Clicking a tag on the landing page filters the feed by that tag again.
  • Applies to the initial server-rendered feed as well as entries loaded by infinite scroll.

Review focus

  • backend/public/assets/js/landing-page.js — searchManager now sits at IIFE scope. The tag handler in hydrateEntryCard calls preventDefault() before checking the binding, so a missed scope turns the link dead instead of falling through to its ?q= href.

Caveats

  • public/assets/dist/landing.bundle.js is generated by sync.sh and is not in the diff.

searchManager was declared inside the infinite-scroll block, so the tag
handler in hydrateEntryCard never saw it. The handler still called
preventDefault(), which killed both the search and the ?q= fallback.
@kibotu
kibotu merged commit 5e98ef7 into main Nov 18, 2026
2 checks passed
@kibotu
kibotu deleted the fix/landing-tag-clicks branch November 18, 2026 10:13
@kibotu kibotu changed the title Fix landing page tag links not filtering the feed Append tags to the search query and combine tags with text Nov 18, 2026
@kibotu kibotu changed the title Append tags to the search query and combine tags with text Fix landing page tag links not filtering the feed Nov 18, 2026
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.

1 participant