fixed setting of href in ResourceHandler