Fixed history pushstate so it uses proper url origin instead of hardcoding