Take this scenario, where the inputted URL is:
http://localhost:3000/course-details
The desired outcome should be a redirection to http://localhost:3000/courses
I recall there being a method for achieving this, but it slips my mind at the moment.