Share via

I there any way to return the URL of current page of office Document using classic search webparts

mahesh p 0 Reputation points
2024-07-04T07:58:35.42+00:00

I had set up Enterprise Search Center site on SharePoint Online. I had configured classic search results webpart with their properties. I am getting results webparts as shown below. I want to display current url of the document is of office document on search results webpart(instead of path of the document is showing by default ). Can any one guide me whether we can get the url of current page when content search is performed. Please help me to resolve the issue.

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 51,986 Reputation points Microsoft External Staff
    2024-07-08T10:00:27.3+00:00

    Based on your comment, I understand that you want to show URL of specific file page in the search results.

    Per my research and test, there is no way to achieve this.

    Currently, SharePoint only supports general file content search, but does not support URL of specific file page search.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.