I have the managed navigation functionality activated in my publishing site on SharePoint 2013, which enables the creation of friendly URLs for pages by using the term store.
Now I am working in a data view webpart that queries the
Pages library in this website and I would like to get the friendly URL for the returned pages. Although I have access to the
@FileRef property, it gives me only the physical path of the item (e.g.
/my-site/Pages/my-page.aspx), and I would like to access the friendly URL (
Is there any procedure I can do to get access the friendly URL of the page in a data view web part?
Unfortunately only replacing the
Pages and the
.aspx parts of the URL won't solve the problem. SharePoint allows to create custom friendly URL's that won't match the file name of the page, and there are many cases the users will do that.