sharing/bday: fix backmapping of suffix

This commit is contained in:
Peter Bieringer
2026-05-04 21:34:54 +02:00
parent 4ca13772c9
commit 3e284a5c30

View File

@@ -158,7 +158,7 @@ def xml_propfind_response(
# backmap
if uri.startswith(share['PathMapped']):
uri = str(share['PathOrToken']) + uri.removeprefix(share['PathMapped'])
if share_bday_automap and not uri.endswith("/"):
if share_bday_automap and uri.endswith(".vcf"):
uri = uri.rstrip(".vcf") + ".ics"
href.text = xmlutils.make_href(base_prefix, uri)