Quantcast
Channel: SharePoint 2013 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 26374

Template javascript error on search page with Minimal Download Strategy (MDS) enabled

$
0
0

Hello,

I have following problem on all my sharepoint 2013 sites.

I do a search on my site with the default search box on upper right in my home page: the result page "osssearchresults.aspx" is OK with results.

But after if i select "this site" on search box, a new search is launched and i have the following error messages :

Template '~sitecollection/_catalogs/masterpage/Display Templates/Search/Control_SearchBox.js' not found or has syntax errors. (LoadTemplate: )
Template '~sitecollection/_catalogs/masterpage/Display Templates/Search/Control_SearchResults.js' not found or has syntax errors. (LoadTemplate: )

After many searchs, it seems that this problem come from "Minimal Download Strategy" feature which is enabled by default on sharepoint site.

If I disable this feature, there is no problem.
The problem is that i don't want to disble this feature because it improve page loading and in consequence the user experience.

As the "osssearchresults.aspx" page and template javascripts are SharePoint "by design" page and scripts, I think it should work even if MDS feature is enable.

Do you have any ideas to resolve my problem ?
Thanks.


Viewing all articles
Browse latest Browse all 26374


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>