diff --git a/doc/src/sgml/logicaldecoding.sgml b/doc/src/sgml/logicaldecoding.sgml
index f817af3ea8aa531ac2d129563ecdf85d330d7265..00f6eeee35ff4e8a9aa057d62110e4c9f745e06d 100644
--- a/doc/src/sgml/logicaldecoding.sgml
+++ b/doc/src/sgml/logicaldecoding.sgml
@@ -572,7 +572,7 @@ typedef void (*LogicalDecodeChangeCB) (
      </note>
     </sect3>
 
-     <sect3 id="logicaldecoding-output-plugin-filter-by-origin">
+     <sect3 id="logicaldecoding-output-plugin-filter-origin">
      <title>Origin Filter Callback</title>
 
      <para>
diff --git a/doc/src/sgml/replication-origins.sgml b/doc/src/sgml/replication-origins.sgml
index 5a4b4cbe74fa2fa8f5069223081561f6fdd1b642..40fcc6d3d0aaa7f321c857f282418c1765b34011 100644
--- a/doc/src/sgml/replication-origins.sgml
+++ b/doc/src/sgml/replication-origins.sgml
@@ -84,7 +84,7 @@
   generated by the session is tagged with the replication origin of the
   generating session.  This allows to treat them differently in the output
   plugin, e.g. ignoring all but locally originating rows.  Additionally
-  the <link linkend="logicaldecoding-output-plugin-filter-by-origin">
+  the <link linkend="logicaldecoding-output-plugin-filter-origin">
   <function>filter_by_origin_cb</function></link> callback can be used
   to filter the logical decoding change stream based on the
   source. While less flexible, filtering via that callback is