SPC155702: Reference 15 hive in attribute 'UrlAction' in CustomAction

A CustomAction can reference a page in attribute 'UrlAction'. Ensure that the URL points to the 15 hive.

TypeName: Reference15HiveInURLActionInCustomAction
CheckId: SPC155702
Severity: Warning
Type: CustomActionDefinition
Resolution

Replace value in attribute 'UrlAction' in CustomAction with an URL which points to the 15 hive. See correct sample below:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   <CustomAction
      Title="My Custom Action"
      Location="Microsoft.SharePoint.StandardMenu"
      GroupId="SettingsMenu">
      <UrlAction Url="_layouts/15/mycustompage.aspx"/>
   </CustomAction>
</Elements>

comments powered by Disqus