SPC155703: Reference 15 hive in attribute 'ScriptSrc' in CustomAction

A CustomAction can reference a script (e.g. .js) in attribute 'ScriptSrc'. Ensure that the URL points to the 15 hive.

TypeName: Reference15HiveInScriptSrcInCustomAction
CheckId: SPC155703
Severity: Warning
Type: CustomActionDefinition
Resolution

Replace ScriptSrc in CustomAction with an URL which points to the 15 hive. See correct sample below:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   <CustomAction
      Location="ScriptLink"
      ScriptSrc="/_layouts/15/script/MyScript.js"
      Sequence="1001" />
</Elements>

comments powered by Disqus