Open results in a new window

We would like PDFs and documents to open in a new window rather than the same browser tab, so customers do not loose a view of our site navigation and their context when documents open from the search page.

We've added JavaScript to set the links open offsite <a target="_blank" href=".... but it appears st.js adds click handlers that override any we set.

Is there a way to do this?

Our code version is

    <script type="text/javascript">
      (function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){
      (w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
      e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
      })(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');

      _st('install','zzzzz','2.0.0');
    </script>

Thank you

Hi @nifsight !

The easy, official answer: we don't support opening documents in a new window/tab.

The janky, not-recommended, unsupported solution is do do something like this: Standard Embed Template Override · GitHub

Hope that helps!