We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b28e44 commit 4e7f48bCopy full SHA for 4e7f48b
1 file changed
app/views/names/index.html.erb
@@ -3,10 +3,11 @@
3
npar[:status] = @status if @status.present?
4
npar[:sort] = @sort if @sort.present?
5
npar[:user] = @user.username if @user.present?
6
+ ppar = { page: params[:page] || 1 }.merge(npar)
7
%>
-<% provide(:canonical_url, canonical_url(npar)) %>
8
+<% provide(:canonical_url, canonical_url(ppar)) %>
9
<%= download_buttons(
- [[names_url(npar.merge(format: :json)), 'file-code', 'JSON']]
10
+ [[names_url(ppar.merge(format: :json)), 'file-code', 'JSON']]
11
) %>
12
13
<h1>
0 commit comments