Is there any way to get page url based on component Id and template priority. I am using the following code to get the page url but this doesnot consider the template priority and return the first page found.
var componentLink = new ComponentLink(componentTcmUri.PublicationId);
var link = componentLink.GetLink(componentTcmUri.ItemId);
var url = link.Url;