Skip to content

Commit

Permalink
Merge pull request #10146 from SivanC/10144/feature/locate-button-new…
Browse files Browse the repository at this point in the history
…-tab

Make locate button open worldcat in new tab
  • Loading branch information
jimchamp authored Dec 16, 2024
2 parents f2564c6 + 44c092c commit d996d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openlibrary/macros/LocateButton.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

$ locateUrl = "/books/XXX/-/borrow?action=locate".replace('XXX', edition_key or '')

<a class="cta-btn cta-btn--available cta-btn--w-icon cta-btn--external" href="$locateUrl"
<a class="cta-btn cta-btn--available cta-btn--w-icon cta-btn--external" href="$locateUrl" target="_blank"
data-ol-link-track="CTAClick|Locate">$_('Locate')</a>

0 comments on commit d996d3f

Please sign in to comment.