2

I am building a display template. I would like to know which column of the current item is the url to the item? I see alot of columns which I can select in the mapping columns section of the search content webpart.

Is it this one?

'Link URL'{Link URL}:'Path'
4

The managed property 'Path' contains the link to the item. Make sure you encode it properly.

var encodedPath = $urlHtmlEncode(ctx.CurrentItem.Path);

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.