Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Query Parameters Reload Page with No Validation #5728

Open
abhiraj-ku opened this issue Oct 1, 2024 · 0 comments
Open

Invalid Query Parameters Reload Page with No Validation #5728

abhiraj-ku opened this issue Oct 1, 2024 · 0 comments

Comments

@abhiraj-ku
Copy link

Current Behaviour: Currently, when a user manually modifies the query parameters in the URL (e.g., state_group), the system reloads the page even if the entered value doesn't match any valid filter or state group. This results in unnecessary page reloads and a confusing user experience.

Expected Behaviour: When a user enters an invalid or non-existing state group in the query parameters, the system should Validate the query parameter against predefined state groups. If invalid, show a custom error message like "Filter not found" or "Invalid state group."Alternatively, fallback to a default or existing valid state group instead of reloading the page.

Steps to Reproduce:

  1. Go to the issue tracking page.
  2. Manually modify the URL query parameter for state_group to an invalid value (e.g., state_group=hello when "hello" is not a valid state group).
  3. Observe that the page reloads with a generic "No issues yet" message.
    Actual Result: The page reloads with a generic message, even though the issue is with an invalid filter.
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

No branches or pull requests

1 participant