# -*- coding: utf-8 -*-
# Copyright (c) 2019, Frappe Technologies and contributors
# License: MIT. See LICENSE

from frappe.model.document import Document

class WebsiteRouteMeta(Document):
	def autoname(self):
		if self.name and self.name.startswith('/'):
			self.name = self.name[1:]
