Procházet zdrojové kódy

Fix the href URL in propfind

Guillaume Ayoub před 14 roky
rodič
revize
3d7f07dc0c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      radicale/xmlutils.py

+ 1 - 1
radicale/xmlutils.py

@@ -201,7 +201,7 @@ def _propfind_response(path, item, props, user):
     response = ET.Element(_tag("D", "response"))
 
     href = ET.Element(_tag("D", "href"))
-    href.text = item.local_path if is_calendar else "%s/%s" % (path, item.name)
+    href.text = item.url if is_calendar else "%s/%s" % (path, item.name)
     response.append(href)
 
     propstat404 = ET.Element(_tag("D", "propstat"))