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