fixed result item link #2062

This commit is contained in:
2023-03-02 22:51:36 +01:00
parent 053216a7ce
commit 15704905fb
3 changed files with 14 additions and 12 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
<article class="result item"> <article class="result item">
<h1> <h1>
<a <a
:href="'/edition/'+item.id+'/'+item.textid" :href="'/texts/'+item.id+'/'+item.textid"
@click.prevent="onclick" @click.prevent="onclick"
@keyup.enter="onclick" @keyup.enter="onclick"
v-html="item.title" v-html="item.title"
@@ -10,7 +10,7 @@
</h1> </h1>
<h2> <h2>
<a <a
:href="'/edition/'+item.id+'/'+item.textid" :href="'/texts/'+item.id+'/'+item.textid"
@click.prevent="onclick" @click.prevent="onclick"
@keyup.enter="onclick" @keyup.enter="onclick"
v-html="item.editionTitle" v-html="item.editionTitle"
+11 -10
View File
@@ -2,7 +2,7 @@
<article class="result item"> <article class="result item">
<h1> <h1>
<a <a
:href="'/texts/'+result.textId+'/'+result.uuid" :href="'/texts/'+result.textId+'/'+result.uuid+'/'+searchedkeys"
@click.prevent="onclick" @click.prevent="onclick"
@keyup.enter="onclick" @keyup.enter="onclick"
v-html="shorted_title" v-html="shorted_title"
@@ -10,7 +10,7 @@
</h1> </h1>
<h2> <h2>
<a <a
:href="'/texts/'+result.textId+'/'+result.uuid" :href="'/texts/'+result.textId+'/'+result.uuid+'/'+searchedkeys"
@click.prevent="onclick" @click.prevent="onclick"
@keyup.enter="onclick" @keyup.enter="onclick"
v-html="editionTitle" v-html="editionTitle"
@@ -78,14 +78,15 @@ export default {
pages: this.result.pages, pages: this.result.pages,
size: this.result.size size: this.result.size
}) })
this.$router.push({ // this.$router.push({
name: `editiontextextract`, // name: `editiontextextract`,
params: { // params: {
id: this.result.textId, // id: this.result.textId,
textid: this.result.uuid, // textid: this.result.uuid,
extract: this.searchedkeys // extract: this.searchedkeys
} // }
}) // })
this.$router.push({ path: `/texts/${this.result.textId}/${this.result.uuid}/${this.searchedkeys}` })
} }
} }
} }
+1
View File
@@ -117,6 +117,7 @@ const routes = [
component: Bibliographie, component: Bibliographie,
props: true props: true
}, },
// redirects /items/uuid to /texts/[edid]/[textid]
{ {
name: 'items', name: 'items',
path: '/items/:uuid', path: '/items/:uuid',