Hack to not use pushState when working with file:
Fixes