Correctly create polymorphic link for versioned item