diff --git a/changelog.d/10016.doc b/changelog.d/10016.doc
new file mode 100644
index 0000000000000000000000000000000000000000..f9b615d7d7abe859ab49679b0e6289f0809d46a5
--- /dev/null
+++ b/changelog.d/10016.doc
@@ -0,0 +1 @@
+Fix broken link in user directory documentation. Contributed by @junquera.
diff --git a/docs/user_directory.md b/docs/user_directory.md
index 872fc219796849d0a890e56387400d76b94a2eba..d4f38d2cf11a6d073ee01b990ec819a583c3a0f7 100644
--- a/docs/user_directory.md
+++ b/docs/user_directory.md
@@ -7,6 +7,6 @@ who are present in a publicly viewable room present on the server.
 
 The directory info is stored in various tables, which can (typically after
 DB corruption) get stale or out of sync.  If this happens, for now the
-solution to fix it is to execute the SQL [here](../synapse/storage/databases/main/schema/delta/53/user_dir_populate.sql)
+solution to fix it is to execute the SQL [here](https://github.com/matrix-org/synapse/blob/master/synapse/storage/schema/main/delta/53/user_dir_populate.sql)
 and then restart synapse. This should then start a background task to
 flush the current tables and regenerate the directory.