change pathname to hash