Commits

Alexander Solovyov  committed 24ae5c4

exclude double slashes

  • Participants
  • Parent commits 772b5f7

Comments (0)

Files changed (1)

File cyraxlib/models.py

 
     def get_url(self):
         url = op.join(self.base, self.slug)
-        if self.isdir() and url:
+        if self.isdir() and url and not url.endswith('/'):
             url += '/'
         return url