updated link handling for wcs (service element) and json (distribution)