In my application I have a view containing a header, main and footer component.
In the index function of a controller I have the following code:
maincomponent = LOAD('home', 'base', args=[vertexID, viewtypeID, groupID, plural],
ajax=True, target='main-component', content='')
this loads the home page, all other pages are loaded in the main-component.
I have a separate application which handles errors. In routes.py I have the following
code:
routes_onerror = [
(r'init/*', r'/error/default/index')
,(r'*/404', r'/error/default/index')
,(r'*/*', r'/error/default/index')
]
# specify action in charge of error handling
error_handler = dict(application='error',
controller='default',
function='index')
The problem is that in case of an error the error_handler is being loaded into
the main-component. Which results in the menu in the header displaying
multiple dropdown carets and the menu items not being clickable anymore.
What is the best way to solve this issue?
Kind regards,
Annet