You need to sign in or sign up before continuing.
Ensure all invalid URLs redirect to the main page instead of the default 404 page
As a user accessing the application through various URLs,
I want any invalid URL to automatically redirect me to the main page
so that I am not presented with a 404 error, improving my user experience by guiding me back to the main page.
Background
Currently, the web application presents a default 404 page when an unregistered URL or path is accessed (e.g. link). To enhance user experience, any incorrect or extra URL path elements should redirect users to the main page (steps/UniversityAccountRegistration.tsx
component) rather than displaying a 404 error page.
Acceptance Criteria
-
Invalid URLs are redirected to the main page ( steps/UniversityAccountRegistration.tsx
) instead of showing a 404 page. -
A Cypress test is created to validate that invalid URLs automatically redirect to the main page ( steps/UniversityAccountRegistration.tsx
).
Links
Edited by Mike Knee