mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix issue with double question marks in URI
This commit is contained in:
parent
ffdeae91d7
commit
8386ab79f6
@ -82,6 +82,9 @@ class EditController extends Controller
|
|||||||
$defaultCurrency = app('amount')->getDefaultCurrency();
|
$defaultCurrency = app('amount')->getDefaultCurrency();
|
||||||
$cash = $repository->getCashAccount();
|
$cash = $repository->getCashAccount();
|
||||||
$previousUri = $this->rememberPreviousUri('transactions.edit.uri');
|
$previousUri = $this->rememberPreviousUri('transactions.edit.uri');
|
||||||
|
$parts = parse_url($previousUri);
|
||||||
|
$previousUri = sprintf('%s://%s/%s', $parts['scheme'], $parts['host'], $parts['path']);
|
||||||
|
|
||||||
|
|
||||||
return view('transactions.edit', compact('cash', 'transactionGroup', 'allowedOpposingTypes', 'accountToTypes', 'defaultCurrency', 'previousUri'));
|
return view('transactions.edit', compact('cash', 'transactionGroup', 'allowedOpposingTypes', 'accountToTypes', 'defaultCurrency', 'previousUri'));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user