Skip to content
Snippets Groups Projects
Commit 3b5110d4 authored by chbaeh's avatar chbaeh
Browse files

ODPSH-267: redirect on startpage

parent d87b14af
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ class OdshRouteController(HomeController): ...@@ -11,7 +11,7 @@ class OdshRouteController(HomeController):
def info_page(self): def info_page(self):
h.redirect_to('https://preview-sh70.dpaorinp.de/DE/Schwerpunkte/openData/Infos/infos_node.html') h.redirect_to('https://preview-sh70.dpaorinp.de/DE/Schwerpunkte/openData/Infos/infos_node.html')
def start(self): def start(self):
return base.render('start.html') h.redirect_to('https://preview-sh70.dpaorinp.de/DE/Schwerpunkte/openData/openData_node.html')
class OdshUserController(UserController): class OdshUserController(UserController):
def me(self, locale=None): def me(self, locale=None):
......
...@@ -243,6 +243,8 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm ...@@ -243,6 +243,8 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
def before_map(self, map): def before_map(self, map):
map.connect('info_page', '/info_page', map.connect('info_page', '/info_page',
controller='ckanext.odsh.controller:OdshRouteController', action='info_page') controller='ckanext.odsh.controller:OdshRouteController', action='info_page')
map.connect('home', '/',
controller='ckanext.odsh.controller:OdshRouteController', action='start')
# redirect all user routes to custom controller # redirect all user routes to custom controller
with SubMapper(map, controller='ckanext.odsh.controller:OdshUserController') as m: with SubMapper(map, controller='ckanext.odsh.controller:OdshUserController') as m:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment