Use link.getAttribute('href') not link.href, so isAbsolute is not true for News list "Previous" and "Next" links.
[!WARNING]
There is still the problem of the code link.href = link.pathname; which would remove URL parameters, but at least the "Previous" and "next" links are being properly ignored now.
Overview
Use
link.getAttribute('href')
notlink.href
, soisAbsolute
is nottrue
for News list "Previous" and "Next" links.Related
Changes
link.getAttribute('href')
notlink.href
insetTargetForExternalLinks.js
Testing
tup_cms
container directly while running https://github.com/TACC/tup-ui.UI
https://github.com/TACC/Core-CMS/assets/62723358/7aa3c93a-09f3-48a4-82de-da68d3ad97b1