Merge pull request #26757 from blaggacao/fix/webform-meta-tag
This commit is contained in:
commit
90fa93f67c
2 changed files with 5 additions and 2 deletions
|
|
@ -64,7 +64,10 @@ class TestWebForm(FrappeTestCase):
|
|||
set_request(method="GET", path="manage-events/new")
|
||||
content = self.normalize_html(get_response_content("manage-events/new"))
|
||||
|
||||
self.assertIn(self.normalize_html('<meta name="name" content="Test Meta Form Title">'), content)
|
||||
self.assertIn(self.normalize_html('<meta name="title" content="Test Meta Form Title">'), content)
|
||||
self.assertIn(
|
||||
self.normalize_html('<meta property="og:title" content="Test Meta Form Title">'), content
|
||||
)
|
||||
self.assertIn(
|
||||
self.normalize_html('<meta property="og:description" content="Test Meta Form Description">'),
|
||||
content,
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ def get_context(context):
|
|||
description = self.introduction_text[:140]
|
||||
|
||||
context.metatags = {
|
||||
"name": self.meta_title or self.title,
|
||||
"title": self.meta_title or self.title,
|
||||
"description": description,
|
||||
"image": self.meta_image,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue