diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 0fb05178..e7aa2703 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -263,8 +263,8 @@ module ApplicationHelper
def pagination_links_full(paginator, count=nil, options={})
page_param = options.delete(:page_param) || :page
url_param = params.dup
- # don't reuse params if filters are present
- url_param.clear if url_param.has_key?(:set_filter)
+ # don't reuse query params if filters are present
+ url_param.merge!(:fields => nil, :values => nil, :operators => nil) if url_param.delete(:set_filter)
html = ''
if paginator.current.previous
diff --git a/app/views/issues/index.rhtml b/app/views/issues/index.rhtml
index 64592a5a..dc93e41f 100644
--- a/app/views/issues/index.rhtml
+++ b/app/views/issues/index.rhtml
@@ -3,7 +3,7 @@
<% html_title(l(:label_issue_plural)) %>
<% form_tag({ :controller => 'queries', :action => 'new' }, :id => 'query_form') do %>
- <%= hidden_field_tag('project_id', @project.id) if @project %>
+ <%= hidden_field_tag('project_id', @project.to_param) if @project %>