We are using the General Link with Search
field to filter and select the items in Sitecore 10.1
. Now when I click Search for a link
on the field and then search for the items of a particular template, it gives me the proper result and that is fine.
But when I select the item from the results, it appends the language
with the Item ID
selected in the ItemLink
box like this as shown in below screenshot.
The issue is that after selecting the item when I click OK, it gives me the error.
Object reference not set to an instance of an object.
Here is the screenshot.
The value in the Item Link field shows like this {7F0FE8D0-36A7-4502-BFA9-49EE583FF513}/en
. Now if I manually remove /en
in the ItemLink
field and click OK then it doesn't show any error and the item gets selected in the field and it works fine.
Can anyone let me know how to resolve this?