diff --git a/apps/dav/lib/comments/commentsplugin.php b/apps/dav/lib/comments/commentsplugin.php index 7abf6e71ee..fb9f5b7ab8 100644 --- a/apps/dav/lib/comments/commentsplugin.php +++ b/apps/dav/lib/comments/commentsplugin.php @@ -121,7 +121,7 @@ class CommentsPlugin extends ServerPlugin { // having their own comments marked as unread $node->setReadMarker(null); - $url = $request->getUrl() . '/' . urlencode($comment->getId()); + $url = rtrim($request->getUrl(), '/') . '/' . urlencode($comment->getId()); $response->setHeader('Content-Location', $url);