I am using SP2013 on-premise standard edition. OWA is not installed in my environment. I search for something and some pages returned. In the search result, when I mouseover the result items, a preview pop-up. For all the "web page" items the preview shows a blank box. I expect it should give me a preview for the web page or web site. I tested on osssearchresults.aspx and any search result page. Is it expected behaivour?
Hi Mark,
Per your description, the preview for web page showed blank in SharePoint 2013 search results.
Are you using host name for your web application?
Please try to edit Item_WebPage_HoverPanel.html and add <WebPartPages:AllowFraming runat="server" /> .
More information, please refer to:
http://techmikael.blogspot.com/2013/04/how-to-enable-page-previews-in.html
If the above doesn't work, please provide a screenshot about this issue, and also check ULS log to check if there is something about it.
Best Regards,
Hi Wendy, the search function only search within the site collection. Hence all returned results are pages under the same site collection. When I click on the results I can open the pages succesfully. My site collection URL is like https://xxxxxx.com/sites/ABC/ . I never use host name URL like https://search.xxxxx.com/
I use F12 tool to check the preview panel contains a iframe part, as below:
<iframe class="ms-srch-hover-siteViewer" id="ctl00_ctl46_g_04309123_4bba_486f_9acb_724dacc7d03a_csr3_item_hoverViewer" src="https://sharepoint.com/sites/ABC/xxxxx/Pages/Forms/AllItems.aspx" frameBorder="0px" scrolling="no">
Also here is the screenshot, you can see the iframe is loading but not display correctly. I never customize the display templates.
My farm's current version is "June 10, 2014 Cumulative Update"
- Edited by Mark Lui 3 hours 58 minutes ago
Hi Wendy, the search function only search within the site collection. Hence all returned results are pages under the same site collection. When I click on the results I can open the pages succesfully. My site collection URL is like https://xxxxxx.com/sites/ABC/ . I never use host name URL like https://search.xxxxx.com/
I use F12 tool to check the preview panel contains a iframe part, as below:
<iframe class="ms-srch-hover-siteViewer" id="ctl00_ctl46_g_04309123_4bba_486f_9acb_724dacc7d03a_csr3_item_hoverViewer" src="https://sharepoint.com/sites/ABC/xxxxx/Pages/Forms/AllItems.aspx" frameBorder="0px" scrolling="no">
Also here is the screenshot, you can see the iframe is loading but not display correctly. I never customize the display templates.
My farm's current version is "June 10, 2014 Cumulative Update"
- Edited by Mark Lui Thursday, August 20, 2015 3:42 AM
Hi Wendy, the search function only search within the site collection. Hence all returned results are pages under the same site collection. When I click on the results I can open the pages succesfully. My site collection URL is like https://xxxxxx.com/sites/ABC/ . I never use host name URL like https://search.xxxxx.com/
I use F12 tool to check the preview panel contains a iframe part, as below:
<iframe class="ms-srch-hover-siteViewer" id="ctl00_ctl46_g_04309123_4bba_486f_9acb_724dacc7d03a_csr3_item_hoverViewer" src="https://sharepoint.com/sites/ABC/xxxxx/Pages/Forms/AllItems.aspx" frameBorder="0px" scrolling="no">
Also here is the screenshot, you can see the iframe is loading but not display correctly. I never customize the display templates.
My farm's current version is "June 10, 2014 Cumulative Update"
- Edited by Mark Lui Thursday, August 20, 2015 3:42 AM
Hi Mark,
In SharePoint, the URL for a web application is like http://servername:[port] . From your web application URL, it seems that you created the web application with host header or configure AAM with host header. So, please try to test as the solution in my first reply.
And please do an Index, then do a full crawl, compare the result.
Also, please test on different browsers, compare if the result is different.
Best Regards,
Wendy
I added <WebPartPages:AllowFraming runat="server" /> in my Master page and the preview iframe is working immediately (without reindex). Thank you!
But shouldn't Microsoft put this fix in an official KB article? I believe my setup is quite stick to Microsoft best practice. When I first time install this SP2013 farm, I choose https://xxxxx.mycompany.com as the hostname. It is also the default zone alias. Actually I don't have an alias http://servername:[port].