diff --git a/pymongo/asynchronous/database.py b/pymongo/asynchronous/database.py index 8e0afc9dc9..5aa206ee24 100644 --- a/pymongo/asynchronous/database.py +++ b/pymongo/asynchronous/database.py @@ -698,7 +698,7 @@ async def aggregate( .. versionadded:: 3.9 .. _aggregation pipeline: - https://mongodb.com/docs/manual/reference/operator/aggregation-pipeline + https://www.mongodb.com/docs/manual/core/aggregation-pipeline/ .. _aggregate command: https://mongodb.com/docs/manual/reference/command/aggregate diff --git a/pymongo/synchronous/database.py b/pymongo/synchronous/database.py index 0d129ba972..a453a94265 100644 --- a/pymongo/synchronous/database.py +++ b/pymongo/synchronous/database.py @@ -698,7 +698,7 @@ def aggregate( .. versionadded:: 3.9 .. _aggregation pipeline: - https://mongodb.com/docs/manual/reference/operator/aggregation-pipeline + https://www.mongodb.com/docs/manual/core/aggregation-pipeline/ .. _aggregate command: https://mongodb.com/docs/manual/reference/command/aggregate