Commits

Thomas Waldmann  committed f9f1170

fix name for root item on mounted backend, no trailing slash!

  • Participants
  • Parent commits 7d91132

Comments (0)

Files changed (1)

File MoinMoin/storage/middleware/routing.py

         backend, _, mountpoint = self._get_backend(name)
         meta, data = backend.retrieve(revid)
         if mountpoint:
-            meta[NAME] = u'{0}/{1}'.format(mountpoint, meta[NAME])
+            name = meta[NAME]
+            if name:
+                meta[NAME] = u'{0}/{1}'.format(mountpoint, meta[NAME])
+            else:
+                meta[NAME] = mountpoint # no trailing slash!
         return meta, data
 
     # writing part