diff --git a/materia/views.py b/materia/views.py index 9f0e991aa..30f7fbeb9 100644 --- a/materia/views.py +++ b/materia/views.py @@ -1248,9 +1248,12 @@ class MateriaLegislativaPesquisaView(FilterView): self.object_list = self.filterset.qs if (data and data.get('numero') is not None): - url = str(self.request.environ['QUERY_STRING']) + url = "&"+str(self.request.environ['QUERY_STRING']) + if url[:5] == "&page": + ponto_comeco = url.find('numero=') - 1 + url = url[ponto_comeco:] else: - url = None + url = '' context = self.get_context_data(filter=self.filterset, object_list=self.object_list, diff --git a/templates/paginacao_pesquisa_materia.html b/templates/paginacao_pesquisa_materia.html index 0395ab951..5fb4b1b9f 100644 --- a/templates/paginacao_pesquisa_materia.html +++ b/templates/paginacao_pesquisa_materia.html @@ -3,23 +3,11 @@