Skip to content
Snippets Groups Projects
Commit 95e76502 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

Merge branch 'hotfix-seo3' into 'prod'

add no robots meta if no results

See merge request spraksamlingane/beta.ordbok.uib.no!132
parents 1c54610f 99cef5ac
No related branches found
No related tags found
No related merge requests found
...@@ -393,6 +393,9 @@ export default { ...@@ -393,6 +393,9 @@ export default {
} }
}, },
metaInfo() { metaInfo() {
if (this.no_results) {
return {meta: [{name: "robots", content: 'none'}]}
}
let q = "" let q = ""
if (this.$route.query.q) { if (this.$route.query.q) {
q = this.$route.query.q + " - " q = this.$route.query.q + " - "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment