Skip to content

Firefly III: a personal finances manager

Fix #12983

James Cole3eb8740b8bf2
diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php
index 0d2c71364e..8f8197d3be 100644
--- a/resources/lang/en_US/firefly.php
+++ b/resources/lang/en_US/firefly.php
@@ -1978,8 +1978,8 @@ return [
'account_locked_currency' => 'The currency of this account must remain :name as long as piggy banks are linked to it.',
'i_am_owed_amount' => 'I am owed amount',
'i_owe_amount' => 'I owe amount',
- 'may_inactive_accounts_link' => 'If all your accounts are inactive, <a href="{{url}}">you can view them on this separate page</a>.',
- 'no_inactive_accounts' => 'You have no inactive (archived) accounts. <a href="{{url}}">Go back to your list of active accounts</a>.',
+ 'may_inactive_accounts_link' => 'If all your accounts are inactive, you can view them on this separate page.',
+ 'no_inactive_accounts' => 'You have no inactive (archived) accounts. Go back to your list of active accounts.',
'inactive_account_link' => 'You have :count inactive (archived) account, which you can view on this separate page.|You have :count inactive (archived) accounts, which you can view on this separate page.',
'inactive_account_link_js' => 'You can view inactive accounts on this separate page.',
'all_accounts_inactive' => 'These are your inactive accounts.',
diff --git a/resources/views/accounts/index.blade.php b/resources/views/accounts/index.blade.php
index 5f724ee3ba..66756c7f34 100644
--- a/resources/views/accounts/index.blade.php
+++ b/resources/views/accounts/index.blade.php
@@ -381,8 +381,10 @@
<template x-if="0 === accounts.length && true === active">
<p class="text-center"><small>
<em>
+ <a href="{{ route('accounts.inactive.index', $objectType) }}">
<span
- x-text="i18next.t('firefly.may_inactive_accounts_link', {url: '{{ route('accounts.inactive.index', $objectType) }}'})"></span>
+ x-text="i18next.t('firefly.may_inactive_accounts_link')"></span>
+ </a>
</em>
</small>
</p>
@@ -408,9 +410,10 @@
</template>
<template x-if="0 === accounts.length && false === active">
<p class="text-center"><small>
- <em>
+ <em><a href="{{ route('accounts.index', $objectType) }}">
<span
- x-text="i18next.t('firefly.no_inactive_accounts', {url: '{{ route('accounts.index', $objectType) }}'})"></span>
+ x-text="i18next.t('firefly.no_inactive_accounts', {url: ''})"></span>
+ </a>
</em>
</small>
</p>