action=getSnapshot: Optimise location.href assignment