This is a completely different issue; you can replace history state in JS without adding new entries.