diff --git a/www/logout.php b/www/logout.php
index 78f0e33a13aaf820f28db42c484deef3c4580ea5..56d0401c758ea2cb42c46ac0ac04173540099c68 100644
--- a/www/logout.php
+++ b/www/logout.php
@@ -16,7 +16,7 @@ if (array_key_exists('link_text', $_REQUEST)) {
     $text = '{logout:default_link_text}';
 }
 
-$t = new \SimpleSAML\XHTML\Template($config, 'logout.php');
+$t = new \SimpleSAML\XHTML\Template($config, 'logout.twig');
 $t->data['link'] = $link;
 $t->data['text'] = $text;
 $t->send();