Temporary fix for back / forward button navigation when using history api