I am in my react app and I want to go from https://example.com/route1
to https://example.com/route1/route1.1
using history.push.
I remember that using history.push(.)
allows me to go back one route, but what is the cleanest way of going from /route1
to /route1/route1.1
using history.push?
edit: this is a simplified route example, in my application there can be more subroutes