Skip to content

Commit 4e7f48b

Browse files
committed
Update index.html.erb
1 parent 7b28e44 commit 4e7f48b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

app/views/names/index.html.erb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
npar[:status] = @status if @status.present?
44
npar[:sort] = @sort if @sort.present?
55
npar[:user] = @user.username if @user.present?
6+
ppar = { page: params[:page] || 1 }.merge(npar)
67
%>
7-
<% provide(:canonical_url, canonical_url(npar)) %>
8+
<% provide(:canonical_url, canonical_url(ppar)) %>
89
<%= download_buttons(
9-
[[names_url(npar.merge(format: :json)), 'file-code', 'JSON']]
10+
[[names_url(ppar.merge(format: :json)), 'file-code', 'JSON']]
1011
) %>
1112

1213
<h1>

0 commit comments

Comments
 (0)