'React router - How to redirect to child component if parent component path is entered in url

I would like to redirect my url for e.g to '/questions/1' when I only write /questions



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source