fix(task): navigate back to project when the project was the last page in the history the user visited
continuous-integration/drone/push Build is failing Details

This commit is contained in:
kolaente 2024-03-13 19:11:49 +01:00
parent 7bf2664e55
commit 8ff59d4649
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 10 additions and 1 deletions

View File

@ -25,7 +25,16 @@
v-for="p in projectStore.getAncestors(project)"
:key="p.id"
>
<router-link :to="{ name: 'project.index', params: { projectId: p.id } }">
<a
v-if="router.options.history.state.back?.includes('/projects/'+p.id+'/') || false"
@click="router.back()"
>
{{ getProjectTitle(p) }}
</a>
<router-link
v-else
:to="{ name: 'project.index', params: { projectId: p.id } }"
>
{{ getProjectTitle(p) }}
</router-link>
<span