web/views/staticcontrollers.py
changeset 10411 4ee15441f2eb
parent 10398 bd00b58b00d9
child 10451 cffe653f93a9
child 10486 d88fb5ccc8e6
--- a/web/views/staticcontrollers.py	Mon Jun 22 14:15:16 2015 +0200
+++ b/web/views/staticcontrollers.py	Mon Jun 22 14:27:37 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,