Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C covid19india-react
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • covid19india
  • covid19india-react
  • Merge requests
  • !1523

Make State page navigate to Home page if invalid state

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/rajkapadia247/master into master Apr 25, 2020
  • Overview 4
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: rajkapadia247

If you try to navigate to /state/, it would cause console errors causing a white screen to appear. Same holds true if instead of "/state/MH/", you enter "/state/mh/" (not in caps). Both of those conditions are now handled.

Description of PR

The user is now navigated to the Home page if an invalid error state code is entered in the URL.

Till now, if an invalid state code was entered in the URL (/state/), the user would be shown a white screen. If a state code is entered in small letters, i.e. mh instead of MH, again the user is shown a white screen. Now even if "mh" is entered, the user is navigated to the Maharashtra page.

Checklist

  • Compiles and passes lint tests
  • Properly formatted
  • Tested on desktop
  • Tested on phone

Screenshots state code in caps

state code not in caps

invalid state

Add relevant screenshots here

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/rajkapadia247/master