Skip to content

Feature page breaks when search query param is not set correctly #5229

@tiagoapolo

Description

@tiagoapolo

How are you running Flagsmith

  • Self Hosted with Docker
  • Self Hosted with Kubernetes
  • SaaS at flagsmith.com
  • Some other way (add details in description below)

Describe the bug

When I navigate from my projects overview to a specific project, I see the project page for a short second and then it disappears, and left is a blank page.For the short period the project page is shown, the URL is: "https://app.flagsmith.com/project/7040/environment/UjHD9fecEp8TYGHDDqYoUG/features. It looks like "&search" is not valid. If I add "&search=" (with a "=" at the end) instead, the page shows.

Image

Sentry issue: https://flagsmith.sentry.io/issues/5016159470/?project=5666694&query=is%3Aunresolved%20expected&referrer=issue-stream&stream_index=0

Steps To Reproduce

This one is hard to reproduce in a regular flow but you can force it to happen by

  1. Go to features page
  2. Look for the search param in the URL
  3. Modify the search param to be &search instead of `&search=

Expected behavior

Page should handle query params correctly

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions