Make default back button to transmit to its parent state

I am using swiping to right…

if i click on A.html it will transit to 1.html and here I implemented swipe which move from 1.html to 1.html with some different data . if i click back button it is coming one level before,but i want it to come to its parent state i.e, A.html…

I thought to make it as a nav button and give href there to A.html… But the problem is I’m calling 1.html from other templates too…

Can anyone please help me with this?
Thankyou

Any idea about this problem? I´m having the same problem…

@legues I did it on my way didn’t got any technical solution.I declared a variable and assigned different numbers for different states via factory method. I’m transmitting to the state based on that variable.