--- a/ForgeSCM/forgescm/templates/index.html
+++ b/ForgeSCM/forgescm/templates/index.html
@@ -37,7 +37,7 @@
           </form>
         </td>
       </tr>
-      <tr py:if="repo.forked_from.project_id">
+      <tr py:if="repo.forked_from.app_config_id">
         <th>Forked from repository</th>
         <td>
           <form method="POST" action="pull_request">