mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-20 21:24:42 -05:00
Remove page param when applying filters
This commit is contained in:
parent
d4422fa514
commit
3166f89ec4
@ -7,9 +7,10 @@
|
|||||||
|
|
||||||
<div id="filters" class="pure-g h-box">
|
<div id="filters" class="pure-g h-box">
|
||||||
<% # Grabs all search filters. This is to make sure we don't accidently overwrite something within the
|
<% # Grabs all search filters. This is to make sure we don't accidently overwrite something within the
|
||||||
# search query later on.
|
# search query later on. We're also going to remove the page attribute here as we'll want to start on page 1
|
||||||
|
#when applying a filter
|
||||||
-%>
|
-%>
|
||||||
<% filter_params = env.request.query_params.to_s.gsub(/q=.+?(?=&|$)/, "") %>
|
<% filter_params = env.request.query_params.to_s.gsub(/q=.+?(?=&|$)/, "").gsub(/&page=\d+/, "") %>
|
||||||
<% base_url = "/search?q=#{HTML.escape(query.not_nil!)}" -%>
|
<% base_url = "/search?q=#{HTML.escape(query.not_nil!)}" -%>
|
||||||
|
|
||||||
<% filters = ["hour", "today", "week", "month", "year"] %>
|
<% filters = ["hour", "today", "week", "month", "year"] %>
|
||||||
|
Loading…
Reference in New Issue
Block a user