Invalid Query Parameters Reload Page with No Validation
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 59.6k
- Forks
- 5.8k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 49
Description
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:
- Go to the issue tracking page.
- 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).
- 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the issue tracking page and reproduce the behavior with an invalid state_group query parameter such as state_group=hello. Trace the query-parameter handling and predefined state groups, then verify that invalid values produce a clear validation result or use a valid fallback instead of showing a misleading empty state.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100