mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-05 14:17:35 +03:00
Handle use in a subdir. Patch from Clint Adams <clint@softwarefreedom.org> adapted from http://redmine.kozea.fr/issues/996
This commit is contained in:
parent
b6b48b5af7
commit
54bda5594c
3 changed files with 5 additions and 2 deletions
|
@ -227,6 +227,7 @@ def _propfind_response(path, item, props, user):
|
|||
|
||||
href = ET.Element(_tag("D", "href"))
|
||||
uri = item.url if is_collection else "%s/%s" % (path, item.name)
|
||||
uri = "%s/%s" % (config.get("server", "base_prefix"), uri)
|
||||
href.text = uri.replace("//", "/")
|
||||
response.append(href)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue