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
  • !1571

Make user navigate to the home page if an invalid statecode in url.

  • Review changes

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

Created by: rajkapadia247

This is the same PR as #1523. Creating one again because it had merge conflicts.

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.

Relevant Issues
Fixes #1525 (closed)

Checklist

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

Screenshots state code in caps

state code not in caps

state code is invalid

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