Commit 4e0790a3 authored by Robert Knight's avatar Robert Knight

Make previous/next item links open in external tab

This component's internals are going to be replaced completely soon, so
this just serves as a reminder that these links need to open in a new
tab.
parent 69f0be4c
...@@ -20,7 +20,9 @@ export default function ContentInfoBanner({ info, onClose }) { ...@@ -20,7 +20,9 @@ export default function ContentInfoBanner({ info, onClose }) {
</Link> </Link>
<div className="grow"> <div className="grow">
{info.links.previousItem && ( {info.links.previousItem && (
<Link href={info.links.previousItem}>Previous article</Link> <Link href={info.links.previousItem} target="_blank">
Previous article
</Link>
)} )}
{info.item.title} {info.item.title}
{info.item.containerTitle && ( {info.item.containerTitle && (
...@@ -30,7 +32,9 @@ export default function ContentInfoBanner({ info, onClose }) { ...@@ -30,7 +32,9 @@ export default function ContentInfoBanner({ info, onClose }) {
</span> </span>
)} )}
{info.links.nextItem && ( {info.links.nextItem && (
<Link href={info.links.nextItem}>Next article</Link> <Link href={info.links.nextItem} target="_blank">
Next article
</Link>
)} )}
</div> </div>
<div className="text-annotator-base"> <div className="text-annotator-base">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment