Set location to hash