Correct resource link generation