diff --git a/changelog.d/7712.misc b/changelog.d/7712.misc
new file mode 100644
index 0000000000000000000000000000000000000000..4f0987303ec4177efa48a69db489dcdd8d22fa64
--- /dev/null
+++ b/changelog.d/7712.misc
@@ -0,0 +1 @@
+Fix broken link in sample config.
diff --git a/docs/sample_config.yaml b/docs/sample_config.yaml
index b415724d73d97877e4e3ed4eff2277568598ee4b..05e7bf215ac8da8dd1d3c459e57b13dd3b0d8642 100644
--- a/docs/sample_config.yaml
+++ b/docs/sample_config.yaml
@@ -1539,7 +1539,7 @@ saml2_config:
 # use an OpenID Connect Provider for authentication, instead of its internal
 # password database.
 #
-# See https://github.com/matrix-org/synapse/blob/master/openid.md.
+# See https://github.com/matrix-org/synapse/blob/master/docs/openid.md.
 #
 oidc_config:
   # Uncomment the following to enable authorization against an OpenID Connect
diff --git a/synapse/config/oidc_config.py b/synapse/config/oidc_config.py
index e24dd637bc658d0067f2a298dbafa92b3370a7cc..e0939bce84a1dab62a5acfe587f6e93abcbb345b 100644
--- a/synapse/config/oidc_config.py
+++ b/synapse/config/oidc_config.py
@@ -89,7 +89,7 @@ class OIDCConfig(Config):
         # use an OpenID Connect Provider for authentication, instead of its internal
         # password database.
         #
-        # See https://github.com/matrix-org/synapse/blob/master/openid.md.
+        # See https://github.com/matrix-org/synapse/blob/master/docs/openid.md.
         #
         oidc_config:
           # Uncomment the following to enable authorization against an OpenID Connect