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">
<h1>
<a
:href="'/edition/'+item.id+'/'+item.textid"
:href="'/texts/'+item.id+'/'+item.textid"
@click.prevent="onclick"
@keyup.enter="onclick"
v-html="item.title"
@@ -10,7 +10,7 @@
</h1>
<h2>
<a
:href="'/edition/'+item.id+'/'+item.textid"
:href="'/texts/'+item.id+'/'+item.textid"
@click.prevent="onclick"
@keyup.enter="onclick"
v-html="item.editionTitle"
+11 -10
View File
@@ -2,7 +2,7 @@
<article class="result item">
<h1>
<a
:href="'/texts/'+result.textId+'/'+result.uuid"
:href="'/texts/'+result.textId+'/'+result.uuid+'/'+searchedkeys"
@click.prevent="onclick"
@keyup.enter="onclick"
v-html="shorted_title"
@@ -10,7 +10,7 @@
</h1>
<h2>
<a
:href="'/texts/'+result.textId+'/'+result.uuid"
:href="'/texts/'+result.textId+'/'+result.uuid+'/'+searchedkeys"
@click.prevent="onclick"
@keyup.enter="onclick"
v-html="editionTitle"
@@ -78,14 +78,15 @@ export default {
pages: this.result.pages,
size: this.result.size
})
this.$router.push({
name: `editiontextextract`,
params: {
id: this.result.textId,
textid: this.result.uuid,
extract: this.searchedkeys
}
})
// this.$router.push({
// name: `editiontextextract`,
// params: {
// id: this.result.textId,
// textid: this.result.uuid,
// 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,
props: true
},
// redirects /items/uuid to /texts/[edid]/[textid]
{
name: 'items',
path: '/items/:uuid',