--- a/src/pyams_thesaurus/zmi/thesaurus.py Thu Oct 08 12:17:35 2015 +0200
+++ b/src/pyams_thesaurus/zmi/thesaurus.py Tue Oct 11 16:15:05 2016 +0200
@@ -138,7 +138,7 @@
def get_ajax_output(self, changes):
return {'status': 'redirect',
- 'location': absolute_url(self.context, self.request, 'admin.html#thesaurus.html'),
+ 'location': absolute_url(self.context, self.request, 'admin#thesaurus.html'),
'close_form': True}
@@ -151,7 +151,7 @@
@property
def url(self):
- return resource_url(self.context, self.request, 'admin.html#{0}'.format(self.view_name))
+ return resource_url(self.context, self.request, 'admin#{0}'.format(self.view_name))
@adapter_config(context=(IThesaurus, IAdminLayer, Interface), provides=IPageHeader)
@@ -161,7 +161,7 @@
@property
def back_url(self):
site = get_parent(self.context, ISite)
- return absolute_url(site, self.request, 'admin.html#thesaurus.html')
+ return absolute_url(site, self.request, 'admin#thesaurus.html')
back_target = None
icon_class = 'fa fa-fw fa-language'
@@ -413,7 +413,7 @@
pass
def nextURL(self):
- return absolute_url(self.context, self.request, 'admin.html#terms.html')
+ return absolute_url(self.context, self.request, 'admin#terms.html')
@view_config(name='import.json', context=IThesaurus, request_type=IPyAMSLayer,