Fix meta tags robots form templates
This commit is contained in:
parent
a81aa6a9e7
commit
6e48cf6d4c
|
@ -264,11 +264,14 @@ export default {
|
||||||
return this.template.image_url
|
return this.template.image_url
|
||||||
},
|
},
|
||||||
metaTags () {
|
metaTags () {
|
||||||
return (this.template && this.template.publicly_listed) ? [] : [{ name: 'robots', content: 'noindex' }]
|
if (!this.template) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
return this.template.publicly_listed ? [] : [{ name: 'robots', content: 'noindex' }]
|
||||||
},
|
},
|
||||||
createFormWithTemplateUrl () {
|
createFormWithTemplateUrl () {
|
||||||
if(this.authenticated) {
|
if(this.authenticated) {
|
||||||
return '/forms/create?template=' + this.template?.slug
|
return '/forms/create?template=' + this.template?.slug
|
||||||
}
|
}
|
||||||
return '/forms/create/guest?template=' + this.template?.slug
|
return '/forms/create/guest?template=' + this.template?.slug
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue