I'm using Managed navigation (Taxonomy Navigation) feature of SharePoint Server 2013. I've setup variation for 2 languages (en and fr).
Using the code below, I managed to get the relative url of the peer site:
string url = Variations.GetPeerUrl(SPContext.Current.Web, currentUrl, label.Title);
For example when I'm in http://www.sample.com/en/Demo , using the code above I get /fr/Pages/Demo.aspx
What I wants is the managed navigation term or friendly url for it which is something like http://www.sample.com/fr/Demo
How can achieve that, what is the correct api that I should use here.
Thanks