diff --git a/rhodecode/apps/home/__init__.py b/rhodecode/apps/home/__init__.py --- a/rhodecode/apps/home/__init__.py +++ b/rhodecode/apps/home/__init__.py @@ -23,6 +23,10 @@ from rhodecode.config import routing_lin def includeme(config): config.add_route( + name='home', + pattern='/') + + config.add_route( name='user_autocomplete_data', pattern='/_users') @@ -38,7 +42,7 @@ def includeme(config): name='goto_switcher_data', pattern='/_goto_data') - # register our static links via redirection mechanismy + # register our static links via redirection mechanism routing_links.connect_redirection_links(config) # Scan module for configuration decorators. diff --git a/rhodecode/config/middleware.py b/rhodecode/config/middleware.py --- a/rhodecode/config/middleware.py +++ b/rhodecode/config/middleware.py @@ -222,6 +222,7 @@ def add_pylons_compat_data(registry, glo def error_handler(exception, request): import rhodecode from rhodecode.lib.utils2 import AttributeDict + from rhodecode.lib import helpers rhodecode_title = rhodecode.CONFIG.get('rhodecode_title') or 'RhodeCode' @@ -255,9 +256,9 @@ def error_handler(exception, request): c.causes = [] if hasattr(base_response, 'causes'): c.causes = base_response.causes - + c.messages = helpers.flash.pop_messages() response = render_to_response( - '/errors/error_document.mako', {'c': c}, request=request, + '/errors/error_document.mako', {'c': c, 'h': helpers}, request=request, response=base_response) return response diff --git a/rhodecode/templates/errors/error_document.mako b/rhodecode/templates/errors/error_document.mako --- a/rhodecode/templates/errors/error_document.mako +++ b/rhodecode/templates/errors/error_document.mako @@ -24,11 +24,10 @@
- <% messages = h.flash.pop_messages() %>