The menu's Research item opens the gallery in the same tab

On the subdomain and Plugin Studio branches, the Research item became a plain link to the gallery's
own address, and it took the external links' markup: target=_blank and the external-link icon.
Choosing Research opened a new tab and left the reader on the page they were on. On /embed-test that
read as a page that would not let them go to Research. The gallery is this site's own, so it now
opens in the same tab like every other page. Only the real external link (Give) opens a new one.
This commit is contained in:
doxa-maps 2026-09-29 06:13:13 +00:00
parent f8d788a07e
commit 12d9db806c
2 changed files with 11 additions and 2 deletions

View file

@ -35,8 +35,16 @@ watch(() => route.fullPath, close)
>
<ul id="secondary-menu" class="role-list stack">
<li v-for="item in secondaryNav" :key="item.key" class="menu-item">
<!-- The Research Gallery is this site's own gallery, on its subdomain: it opens in the same tab like
every other page. Only the external links (Give) open a new tab. -->
<a
v-if="item.href"
v-if="item.hrefConfig"
:href="item.href"
>
{{ t(item.key) }}
</a>
<a
v-else-if="item.href"
:href="item.href"
target="_blank"
rel="noopener"

View file

@ -7,7 +7,8 @@ export interface NavItem {
to?: string // internal route (passed through localePath in components)
href?: string // external URL (no locale prefix)
rel?: string // e.g. 'noopener'
// external URL taken from runtime config (public.<name>) instead of a fixed href
// the Research Gallery: this site's /research-gallery, which the server sends to the deployment's gallery;
// it opens in the same tab (components/public/TheHeader.vue)
hrefConfig?: 'researchGalleryUrl'
// kept in the list but not shown: switched off rather than deleted
off?: boolean