Skip to content

Conversation

@bokelley
Copy link
Contributor

Summary

  • Fix URL filter params not being recognized when using hyphens (e.g., ?type=sales-agent)
  • Normalize hyphens to underscores when reading URL params for internal use
  • Convert underscores back to hyphens when updating URLs for better readability

Test plan

  • Visit /members?type=sales-agent - filter should be applied and "Sales Agents" button highlighted
  • Click a different filter button - URL should update to use hyphens (e.g., ?type=creative-agent)
  • Both hyphenated (?type=sales-agent) and underscored (?type=sales_agent) URLs work

🤖 Generated with Claude Code

Normalize hyphens to underscores when reading URL params (e.g.,
?type=sales-agent -> sales_agent) and convert back to hyphens when
updating URLs for better readability.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bokelley bokelley force-pushed the bokelley/members-filter-url branch from c66a9cc to d8e97d6 Compare January 29, 2026 14:13
@bokelley bokelley merged commit ad7b1aa into main Jan 29, 2026
6 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.

2 participants