Forum Discussion
Thilina783
May 17, 2024Copper Contributor
Error when clicking on results from PnP modern search
Error when clicking on results from PnP modern search
I have PnP modern search and results webparts (that connect to a SharePoint list) on a SharePoint Online site..
When searching keyword, it brings in correct results, however, when clicking on a result (which is a link to a SharePoint item page) it gives me the following error:
"hmm... looks like this file doesn't have a preview we can show you"
Could someone advise how to get past this and open the item in the browser?
Hello Thilina783
i have tested it and it works fine.
Do you use a standard layout or do you use an customized layout?
How looks the settings in your Search Results?
Best, Dave
- Thilina783Copper ContributorHi Dave, thanks for the message, and sorry for the late response.
It's a standard layout, no customizations. I found a fix for this.
Added the following in Title 'column value' and that sorted it.
<a href='{{OriginalPath}}' target='_blank'>{{Title}}</a>