diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html
index 63442c2..fa4cede 100644
--- a/pagure/templates/pull_request.html
+++ b/pagure/templates/pull_request.html
@@ -389,11 +389,11 @@
{%endmacro%}
{% macro viewfilelink(filepath, identifier=False)%}
- {% if pull_request %}
- {% if not identifier %}
- {% set identifier = pull_request.branch_from %}
- {% endif %}
- {{filepath | unicode}}
+ {% endif %}
+ title="View file as of {{ patch_new_id|short }}">
+ {{filepath | unicode}}
{% endmacro %}
{% if patch | hasattr('new_file_path') %}