fix: set_metatags_from_website_route_meta

This commit is contained in:
Suraj Shetty 2021-04-28 13:21:46 +05:30
parent 3aa990c6d9
commit d7fcc60ac7

View file

@ -107,7 +107,7 @@ class BaseTemplatePage(WebPage):
Get meta tags from Website Route meta
they can override the defaults set above
'''
route = self.context.path
route = self.path
if route == '':
# homepage
route = frappe.db.get_single_value('Website Settings', 'home_page')