vue personRenderBox when no returnPath

This commit is contained in:
2021-09-06 16:37:30 +02:00
parent 6e57d16ebf
commit cf78c59e76
2 changed files with 3 additions and 2 deletions

View File

@@ -167,7 +167,8 @@ export default {
return `/fr/person/${this.person.id}/general`;
},
getCurrentHouseholdUrl() {
return `/fr/person/household/${this.person.current_household_id}/summary?returnPath=${this.returnPath}`
let returnPath = this.returnPath ? `?returnPath=${this.returnPath}` : ``;
return `/fr/person/household/${this.person.current_household_id}/summary${returnPath}`
}
}
}