2

How to tweak Search Web Part to open /search/Pages/ result to new tab instead of redirecting it on the same page ?

enter image description here

enter image description here

0

Good day!

If this is for a search results webpart (like results.aspx), than what I found easiest was to add a content editor at the bottom of the page and add a little jquery to achieve this. You can use something like this:

<script type="text/javascript">
$(".ms-srch-item-link").attr("target","_blank");
</script>

This jquery will target all hyperlinks that appear in the search results webpart and change their attributes to open in a new tab.

1
  • I think he means from the search box page, not for the links on the results page Aug 16 '18 at 16:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.