web/views/staticcontrollers.py
changeset 10398 bd00b58b00d9
parent 9497 7310738fafe5
child 10451 cffe653f93a9
child 10486 d88fb5ccc8e6
--- a/web/views/staticcontrollers.py	Thu Jun 18 18:22:55 2015 +0200
+++ b/web/views/staticcontrollers.py	Fri Jun 19 17:54:04 2015 +0200
@@ -243,7 +243,7 @@
 
     def publish(self, rset=None):
         staticdir = self._cw.vreg.config.static_directory
-        relpath = self.relpath
+        relpath = self.relpath[len(self.__regid__) + 1:]
         return self.static_file(osp.join(staticdir, relpath))
 
 STATIC_CONTROLLERS = [DataController, FCKEditorController,