Open mkdir-washington-edu opened 1 year ago
It looks like the logic we have for preventing the URLs of <a>
links in the original page from being rewritten into proxy links (see https://github.com/hypothesis/viahtml/blob/bd5ecfa387ff84a0d2c093e37469dce3500d0bab/viahtml/hooks/hooks.py#L96) is not working in this case.
What is supposed to happen for <a>
links on the page is:
target=_blank
to the link when it is clicked, so it opens in an external tab (see https://github.com/hypothesis/viahtml/blob/bd5ecfa387ff84a0d2c093e37469dce3500d0bab/viahtml/templates/banner.html#L90)
Bug report form
Steps to reproduce
Expected behaviour
The page should open in a new tab, but without "https://lms-viahtml.hypothes.is/proxy/mp_/" and without the app embedded or in via at all.
Browser/system information
Chrome 107 MacOS 11.6
Additional details
Old issue with OpenStax here: https://github.com/hypothesis/product-backlog/issues/1273. Recently closed as the old issue seems to no longer happen. May also be related to: https://github.com/hypothesis/viahtml/issues/423