Clean up shared elements of create transaction form.

This commit is contained in:
James Cole
2026-08-17 08:42:02 +02:00
parent 56b2db864e
commit f38577380c
17 changed files with 268 additions and 759 deletions
+5 -1
View File
@@ -193,7 +193,11 @@ abstract class Controller extends BaseController
$from = $current['path'];
}
if (array_key_exists('query', $current) && '' !== $current['query']) {
$from .= '?'.$current['query'];
// parse query and remove existing _from.
$parts = [];
parse_str($current['query'], $parts);
unset($parts['_from']);
$from .= http_build_query($parts);
}
if (array_key_exists('fragment', $current) && '' !== $current['fragment']) {
$from .= '#'.$current['fragment'];