ConfigController: fix config/diff URL handling

fixes #1704
This commit is contained in:
Thomas Gelf 2018-11-14 11:48:48 +01:00
parent 61cb105ab1
commit 117699c957
1 changed files with 3 additions and 2 deletions

View File

@ -346,7 +346,8 @@ class ConfigController extends ActionController
}
}
$this->content()->add(Html::tag('form', ['action' => $this->url(), 'method' => 'GET'], [
$baseUrl = $this->url()->without(['left', 'right']);
$this->content()->add(Html::tag('form', ['action' => (string) $baseUrl, 'method' => 'GET'], [
new HtmlString($this->view->formSelect(
'left',
$leftSum,
@ -355,7 +356,7 @@ class ConfigController extends ActionController
)),
Link::create(
Icon::create('flapping'),
$this->url(),
$baseUrl,
['left' => $rightSum, 'right' => $leftSum]
),
new HtmlString($this->view->formSelect(