我们在SharePoint Online中有一个应用程序,该应用程序在Web级别创建用户自定义操作,以添加按钮以列出功能区。此按钮导航到.aspx页,应用程序将其放入站点的库中。用户自定义操作的详细信息在底部给出。
几年来一切正常。最近几天,我们看到了一个奇怪的问题。当从网站中的任何列表中打开项目时(SP经典UI列表视图),打开的表单就是先前单击的项目的表单。因此,当用户第一次单击列表中的打开项时(例如带有ID 2的项),它将打开该项。之后,当用户关闭该项目并单击ID为3的项目时,它将打开ID为2的项目。接下来,当用户单击ID为5的项目单击时,它将以ID 3打开该项目。依此类推,项会打开,其中包含之前打开的ID。
当我们从列表功能区中删除用户自定义操作时,问题就消失了,并且打开了带有正确项目ID的项目。这仅在Chrome浏览器中发生,有时甚至在Edge中也发生。在其他浏览器中不存在问题。关于可能导致此问题以及如何解决的任何想法。
环境:仅SharePoint Online Classic用户界面(不适用于现代用户界面)
用户自定义操作标记:
<content type="application/xml">
<m:properties>
<d:ClientSideComponentId m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:ClientSideComponentId>
<d:ClientSideComponentProperties/>
<d:CommandUIExtension>
<CommandUIExtension xmlns="http://schemas.microsoft.com/sharepoint/">
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.List.Settings.Controls._children">
<Button Id="30f6967538914455a13febd3eadb2cc2" CommandType="General" Image16by16="https://--host--/default16x16.png" Image32by32="https://--host--/default32x32.png" ToolTipTitle="Column Formatting" ToolTipDescription="Click to Configure Formatting" LabelText="Column Formatting" Sequence="1" TemplateAlias="o1" Command="30f6967538914455a13febd3eadb2cc2CMDCommand"/>
</CommandUIDefinition>
<CommandUIDefinition Location="Ribbon.Library.Settings.Controls._children">
<Button Id="0e2cbe2d7ad64bdd9d0ed7362661667c" CommandType="General" Image16by16="https://--host--/default16x16.png" Image32by32="https://--host--/default32x32.png" ToolTipTitle="Column Formatting" ToolTipDescription="Click to Configure Column Column Formatting" LabelText="Column Formatting" Sequence="1" TemplateAlias="o1" Command="0e2cbe2d7ad64bdd9d0ed7362661667cCMDCommand"/>
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler Command="30f6967538914455a13febd3eadb2cc2CMDCommand" CommandAction="~Site/AppsLib/ColumnFormat/Pages/FormatColumnSettings.aspx?ListID={ListId}&Source={Source}"/>
<CommandUIHandler Command="0e2cbe2d7ad64bdd9d0ed7362661667cCMDCommand" CommandAction="~Site/AppsLib/ColumnFormat/Pages/FormatColumnSettings.aspx?ListID={ListId}&Source={Source}"/>
</CommandUIHandlers>
</CommandUIExtension>
</d:CommandUIExtension>
<d:Description m:null="true"/>
<d:Group m:null="true"/>
<d:HostProperties/>
<d:Id m:type="Edm.Guid">413e3e67-9785-4512-9418-366932acc127</d:Id>
<d:ImageUrl m:null="true"/>
<d:Location>CommandUI.Ribbon</d:Location>
<d:Name>ColumnFormatSettings</d:Name>
<d:RegistrationId>0x01</d:RegistrationId>
<d:RegistrationType m:type="Edm.Int32">2</d:RegistrationType>
<d:Rights m:type="SP.BasePermissions">
<d:High m:type="Edm.Int64">0</d:High>
<d:Low m:type="Edm.Int64">0</d:Low>
</d:Rights>
<d:Scope m:type="Edm.Int32">3</d:Scope>
<d:ScriptBlock m:null="true"/>
<d:ScriptSrc m:null="true"/>
<d:Sequence m:type="Edm.Int32">1002</d:Sequence>
<d:Title>ColumnFormatSettings</d:Title>
<d:Url m:null="true"/>
<d:VersionOfUserCustomAction>16.0.1.0</d:VersionOfUserCustomAction>
</m:properties>