skip keyword merge

This commit is contained in:
byte[] 2019-12-08 12:55:55 -05:00
parent dc1cacbcc7
commit 0c9a31eeda

View file

@ -10,7 +10,7 @@ defmodule PhilomenaWeb.PaginationView do
end
def page_path(route, params, number) do
route.(Keyword.merge(params, page: number))
route.([{:page, number} | params])
end
def first_page_path(_page, route, params), do: page_path(route, params, 1)