JavaScript stops working and Masterpage seems to lose all styles.
There are 3 places where a converted .html Masterpage references the original URL/Domain the site was created in.
<mso:_dlc_DocIdUrl msdt:dt="string"></mso:_dlc_DocIdUrl>
<mso:HtmlDesignFromMaster msdt:dt="string"></mso:HtmlDesignFromMaster>
<mso:HtmlDesignStatusAndPreview msdt:dt="string"></mso:HtmlDesignStatusAndPreview>
This can cause problems if you have a development environment with a different URL/Server name than the production environment.
I've seen a reference to this in one place: The 3rd comment references this problem and how it was fixed. Has anyone else encountered this?
At first, it seemed the Masterpage was breaking because somehow there was a duplicate meta tag added upon conversion.
<!--CE: End Page Head Contents Snippet-->
<meta http-equiv="X-UA-Compatible" content="IE=10" />
<meta name="GENERATOR" content="Microsoft SharePoint" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Expires" content="0" />
Once I removed the duplicate tag, the Masterpage worked again. But now, it's broken again and JavaScript doesn't work...
Any ideas on troubleshooting will be helpful
The suggested way to upload JavaScript files in SP Server 2013 is using the mapped network drive from design manager, yet, several people have mentioned there are different locations where JS files can be loaded and some continue to use 2007 and 2010 methods.
(2013) Using the JSLink Method
<SharePoint:ScriptLink language="javascript" name="~sitecollection/assets/js/jquery.js" runat="server" OnDemand="False" LoadAfterUI="True" />
(2010) Load to: /_LAYOUTS/CustomScript or /_LAYOUTS/15/CustomScript
- (2007/2010) 'Script Link' method /_LAYOUTS/1033 StackExchange Question: Unable to reference jQuery inside my master page
- (2010) 'Custom Action' method
I wonder that when the server name and internet url are different, if this would require using one of these different methods?