Issue with pushState. New page loads twice with routes

I’m having issue with pushState. When i click on a post, it goes to new page via routes and back button works fine for first time, page return to home. But when i click on another post. That post loads twice. It slide animate once and then again in milliseconds. And when i click back button, it return back to same post once and then clicking back again will return to home.

Can someone please help how to fix it.


Any help on this… Here is screencast of the issue.

There is some issue in your code. Looks like you init app or view more than once

I have this same issue, it either it loads twice when i press the back button. or the tabs don’t work.

Kindly watch the screencast.