Fix name.
Fix case when session is None.
Adapt new appconfig to legislation pages.