|
|
@@ -20,7 +20,8 @@ class WebsiteSettings(Document): |
|
|
|
if frappe.flags.in_install: |
|
|
|
return |
|
|
|
if self.home_page and not resolve_route(self.home_page): |
|
|
|
frappe.throw(_("Invalid Home Page") + " (Standard pages - index, login, products, blog, about, contact)") |
|
|
|
frappe.msgprint(_("Invalid Home Page") + " (Standard pages - index, login, products, blog, about, contact)") |
|
|
|
self.home_page = '' |
|
|
|
|
|
|
|
def validate_top_bar_items(self): |
|
|
|
"""validate url in top bar items""" |
|
|
|