I'm currently writing a web application, and my client asked me if it would be possible to suggest a valid URL to the user when they accidentally write a typo in the URL bar, an example of this would go like this:
- Bob navigates to 'https://www.example.com/product'
- The web server is unable to find the route '/product', but knows that the route '/products' does exist
- The web server suggests Bob to navigate to '/products' instead
- Bob navigates to '/products' and continues browing the website
This example would cause Bob to have a better user experience.
However, it led me to wonder if this is considered bad practice, as the server might expose URL's the admin of the website might not want to show publicly.