Skip to content
Snippets Groups Projects
Commit 9b8ae7b3 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

fix page and perPage bugs

parent 149ca2bd
No related branches found
No related tags found
No related merge requests found
......@@ -188,9 +188,8 @@ function load_articles(self, query, offset, n, dict) {
function navigate_to_query(self, word) {
function navigate_to_query(self, word, keep_page) {
self.error = null
self.page = 1
self.no_results = null
self.waiting_for_articles = true
if (!self.event) {
......@@ -433,6 +432,7 @@ export default {
let query = {q: q, page: this.page}
if (pos != 'all') query.pos = pos
if (this.scope) query.scope = this.scope
if (this.perPage) query.perPage = this.perPage
this.$router.push({path, query})
let offset = 0
if (this.page) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment