I am trying to customize a Sharepoint 2013 team site.
I created a copy of seattle.master and set it as default master page via context menu.
I added my custom CSS within head tages like so:
<SharePoint:Scriptlink runat="server" Name="https://sharepoint.abc.org/sites/the_new_abc_portal/custom/jquery-1.10.2.min.js" Language="javascript" />
works!
I added jQuery like so:
<SharePoint:ScriptLink language="javascript" name="/sites/the_new_abc_portal/custom/jquery-1.10.2.min.js" runat="server" Localizable="false" />
When I reload the page I get:
<html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"><meta name="Robots" content="NOINDEX " /></head><body></body>
<script type="text/javascript">
var gearPage = document.getElementById('GearPage');
if(null != gearPage)
{
gearPage.parentNode.removeChild(gearPage);
document.title = "Error";
}
</script>
</html>
The link to jQuery is correct.
I now have a solution by which I simply add the normal script tag like so:
<script type="text/javascript" src="/sites/the_new_abc_portal/custom/jquery-1.10.2.min.js"></script>
Works like a charm.
Now my questions:
Is there any objection against my "fix"
Why doesn't it work in the first place?