when we click a hyperlink in a pdf which is embedded in a sharepoint web page using content editor webpart/page viewer web part is open in new window

Bikram Pal 80 Reputation points
2023-06-29T20:22:14.4566667+00:00

I tried different solutions but nothing worked. When i click a hyperlink in a pdf which is embedded in a sharepoint 2019 web page using content editor webpart or a page viewer web part, the hyperlink opens up a page in a new window. The requirement is when we click on a hyperlink which is on a pdf it should open within the same content editor webpart borders and not on the parent page or on a new browser tab. is it possible?

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 51,926 Reputation points Microsoft External Staff
    2023-06-30T09:45:37.2933333+00:00

    Per my research, it is a default behavior that when you click a hyperlink in the PDF file which is embedded in a content editor web part or a page viewer web part, it opens this hyperlink in a new browser tab.

    There is no option to change the default behavior.


    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.

    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.