I have a custom module called Business with the fields:

  • Title
  • Related Committee (which is related data from another custom module)

From the Business list view widget I want to change the link to be a specific URL like:

/UrlOfRelatedCommittee/UrlOfBusinessItem

Another example: /committee-a/business-topic-a

I'm using Sitefinity 12.1 and MVC.

I've managed to get the URL of the related committee using @item.Fields.RelatedCommittee.DefaultUrl in a Widget Template.  I just don't know how to get the URL of the Business item without it being the full URL (I just need the "business-topic-a") part.

Or maybe there's a better way to do this altogether.  Thank you.