fixed result item link #2062
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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}` })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user