Skip to content

Commit

Permalink
Don't add 1 to canvas position in search results (#945)
Browse files Browse the repository at this point in the history
  • Loading branch information
blms committed Dec 4, 2023
1 parent 6d03b12 commit e7d6d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/templates/snippets/volume_result.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h4>
{% for canvas in volume.meta.inner_hits|group_by_canvas %}
<dd class="result-page">
<a href="{% url 'page' volume=volume.pid page=canvas.pid %}">
<span class="page-number">p. {{ canvas.position|add:1 }}</span>
<span class="page-number">p. {{ canvas.position }}</span>
{% if canvas.highlights|length %}
<ul class="highlights">
{% for fragment in canvas.highlights %}
Expand Down

0 comments on commit e7d6d4a

Please sign in to comment.