Commit ef666fc5 authored by ale's avatar ale

redirect the home page to use an explicit title (Home); fixes bug #16

parent b3b040b4
......@@ -9,9 +9,11 @@ log = logging.getLogger(__name__)
class DocsController(BaseController):
def index(self):
redirect_to(controller='/docs', action='view')
redirect_to(controller='/docs', action='view', title='Home')
def view(self, title='Home'):
def view(self, title=None):
if not title:
return redirect_to(controller='/docs', action='view', title='Home')
c.doc = model.Document.query.filter_by(title=title).first()
if not c.doc:
if request.environ.has_key('HTTP_REFERER'):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment