Changed admin view name to "admin" instead of "admin.html"
authorThierry Florac <thierry.florac@onf.fr>
Tue, 11 Oct 2016 16:09:19 +0200
changeset 71 0a612729eb2f
parent 70 67686624b3cf
child 72 6dd8bc7bb7b5
Changed admin view name to "admin" instead of "admin.html"
src/pyams_security/zmi/utility.py
--- a/src/pyams_security/zmi/utility.py	Tue Oct 11 16:08:42 2016 +0200
+++ b/src/pyams_security/zmi/utility.py	Tue Oct 11 16:09:19 2016 +0200
@@ -64,7 +64,7 @@
     @property
     def url(self):
         site = get_parent(self.context, ISite)
-        return resource_url(site, self.request, 'admin.html#{0}'.format(self.view_name))
+        return resource_url(site, self.request, 'admin#{0}'.format(self.view_name))
 
 
 @viewlet_config(name='security-manager.menu', context=ISite, layer=IAdminLayer, manager=IControlPanelMenu,