Adding go function to navigate to a given route.