bugfix: location.href when exporting URL