updates currentRoute for onpopstate history events

not absolutely sure if this is where it should be, but it seems to have fixed the bug in my project