Fix resource link parsing