From 99cef5ac2c0445fee7787487b95ecabf9f6eaf1a Mon Sep 17 00:00:00 2001 From: Henrik Askjer <henrik.askjer@uib.no> Date: Thu, 3 Feb 2022 13:21:06 +0100 Subject: [PATCH] add no robots meta if no results --- src/components/DictionaryView.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index 108cff8d..a52e3727 100644 --- a/src/components/DictionaryView.vue +++ b/src/components/DictionaryView.vue @@ -393,6 +393,9 @@ export default { } }, metaInfo() { + if (this.no_results) { + return {meta: [{name: "robots", content: 'none'}]} + } let q = "" if (this.$route.query.q) { q = this.$route.query.q + " - " -- GitLab