[web] Fix a bug preventing to index buttons to work in the genre pages

This commit is contained in:
Alain Nussbaumer 2024-03-13 17:32:35 +01:00
parent b59a1b9407
commit 601962c8d8
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
v-for="index in indices" v-for="index in indices"
:key="index" :key="index"
class="button is-small" class="button is-small"
:to="'#index_' + index" :to="{ hash: `#index_${index}`, query: $route.query }"
>{{ index }}</router-link >{{ index }}</router-link
> >
</nav> </nav>

View File

@ -53,7 +53,7 @@ export default {
return this.options_visible ? 'chevron-up' : 'chevron-down' return this.options_visible ? 'chevron-up' : 'chevron-down'
}, },
position() { position() {
return { hash: this.options_visible ? '#top' : '#app' } return { hash: this.options_visible ? '#top' : '#app', query: this.$route.query }
} }
}, },
mounted() { mounted() {