From 8efd0717dd9c162b12788d5410bf7030f75b32ee Mon Sep 17 00:00:00 2001 From: Valentyne Stigloher Date: Mon, 29 Jul 2024 10:38:43 +0200 Subject: [PATCH] (nav) correct highlighting for blog and translinguistics (and for the edge-case of the /undefined 404 route) --- components/Header.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/components/Header.vue b/components/Header.vue index 06d1b7266..43d092c2c 100644 --- a/components/Header.vue +++ b/components/Header.vue @@ -306,11 +306,12 @@ export default { text: this.$t('links.header'), textLong: this.$t('links.headerLong'), extra: [ - `/${this.$config.links.academicRoute}`, - this.$config.links.split ? '' : 'blog', - this.$config.links.split ? '' : 'blogEntry', - this.$config.links.split ? '' : 'blogEntryShortcut', - `/${this.$config.links.mediaRoute}`, + this.$config.links.academicRoute ? `/${this.$config.links.academicRoute}` : '', + this.$config.links.translinguisticsRoute ? `/${this.$config.links.translinguisticsRoute}` : '', + this.$config.links.splitBlog ? '' : 'blog', + this.$config.links.splitBlog ? '' : 'blogEntry', + this.$config.links.splitBlog ? '' : 'blogEntryShortcut', + this.$config.links.mediaRoute ? `/${this.$config.links.mediaRoute}` : '', this.$config.links.split ? `/${this.$config.faq.route}` : '', this.$config.english && this.$config.english.enabled ? `/${this.$config.english.route}` : '', this.$config.links.zine && this.$config.links.zine.enabled ? `/${this.$config.links.zine.route}` : '',