mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
skip keyword merge
This commit is contained in:
parent
dc1cacbcc7
commit
0c9a31eeda
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ defmodule PhilomenaWeb.PaginationView do
|
||||||
end
|
end
|
||||||
|
|
||||||
def page_path(route, params, number) do
|
def page_path(route, params, number) do
|
||||||
route.(Keyword.merge(params, page: number))
|
route.([{:page, number} | params])
|
||||||
end
|
end
|
||||||
|
|
||||||
def first_page_path(_page, route, params), do: page_path(route, params, 1)
|
def first_page_path(_page, route, params), do: page_path(route, params, 1)
|
||||||
|
|
Loading…
Reference in a new issue