I need your help with an issue I'm facing on SharePoint 2013. I created a new search page and added the search box along with the search result web part. To customize the display of the search results, I created a custom display item template and added a few variables to show additional data about the list item.
After publishing the changes, the search results appeared as expected, except for one problem. When I clicked on the search item, it showed a link with /Pages/ and when I tried to open the item, it displayed a message saying that the page could not be found.
The URL of my search page is /Pages/Search.aspx. I want to know what needs to be changed so that the item link works properly.