diff --git a/ajax/dojo/configure.zcml b/ajax/dojo/configure.zcml
index c8221d2..feb6c1a 100644
--- a/ajax/dojo/configure.zcml
+++ b/ajax/dojo/configure.zcml
@@ -22,7 +22,6 @@
name="ajax.inner.html"
template="../innerHtml.pt"
permission="zope.ManageContent"
- menu="zmi_views" title="Contents"
/>
diff --git a/browser/loops/auth.py b/browser/loops/auth.py
index a57fdef..4e94834 100644
--- a/browser/loops/auth.py
+++ b/browser/loops/auth.py
@@ -43,6 +43,8 @@ class LoopsSessionCredentialsPlugin(SessionCredentialsPlugin):
site = hooks.getSite()
#camefrom = request.getURL() # wrong when object is not viewable
camefrom = request.getApplicationURL() + request['PATH_INFO']
+ if 'login' in camefrom:
+ camefrom = '/'.join(camefrom.split('/')[:-1])
url = '%s/@@%s?%s' % (zapi.absoluteURL(site, request),
self.loginpagename,
urllib.urlencode({'camefrom': camefrom}))
diff --git a/browser/loops/configure.zcml b/browser/loops/configure.zcml
index e1abaf7..ad9b94c 100644
--- a/browser/loops/configure.zcml
+++ b/browser/loops/configure.zcml
@@ -10,7 +10,7 @@
You are not authorized to perform this action. However, you may login as a different user who is authorized.
-