Browser fix : use window.location.href instead of window.location.pathname
[Generating dist files]