Commit 3394a935 authored by dindigala's avatar dindigala
Browse files

Merge branch 'issue/navigate-back-to-page' into 'develop'

feat: adding a method to get page numbers navigating from search

See merge request !220
parents 81dbcf08 3eefaf5d
Pipeline #225864 passed with stages
in 4 minutes and 40 seconds
......@@ -34,7 +34,7 @@
>
<a
:class="$q.dark.isActive ? 'text-dark' : 'text-white'"
:href="`${redirectUrl}search.html?searchTerm=${searchTerm}`"
:href="`${redirectUrl}search.html?searchTerm=${searchTerm}&page=${page}`"
class="header-links"
>
<q-icon
......@@ -76,6 +76,9 @@ export default {
searchTerm() {
return this.$route.query.searchTerm;
},
page() {
return this.$route.query.page || 1;
},
},
created() {
this.fasHome = fasHome;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment