diff --git a/docs/simplesamlphp-sp.txt b/docs/simplesamlphp-sp.txt
index e22f40d1da8cc98dde22dd9f2274175f83bb3665..ea5c2d58ffdc59b35d97d21ff878ad269552b9b0 100644
--- a/docs/simplesamlphp-sp.txt
+++ b/docs/simplesamlphp-sp.txt
@@ -141,7 +141,7 @@ The test page should contain a list of your attributes:
 Integrating authentication with your own application
 ----------------------------------------------------
 
-The API is documented in [the SP API reference](simplesamlphp-sp-api-reference).
+The API is documented in [the SP API reference](simplesamlphp-sp-api).
 
 For those web resources you want to protect, you must add a few
 lines of PHP code: