(nav) correct highlighting for blog and translinguistics (and for the edge-case of the /undefined 404 route)

This commit is contained in:
Valentyne Stigloher 2024-07-29 10:38:43 +02:00
parent 0988fcf35d
commit 8efd0717dd

View File

@ -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}` : '',