We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b7ea15 commit 5ffd534Copy full SHA for 5ffd534
1 file changed
application/controllers/SnmpController.php
@@ -171,12 +171,18 @@ public function deviceAction(): void
171
'delay' => 3,
172
]), Loop::get());
173
Notification::success('Device has been submitted');
174
- $this->redirectNow('imedge/snmp/devices#!imedge/snmp/device?uuid=' . $deviceUuid->toString());
+ $this->redirectNow('imedge/snmp/devices#!' . Url::fromPath('imedge/snmp/device', [
175
+ 'uuid' => $deviceUuid->toString()
176
+ ]));
177
} catch (Exception $exception) {
178
Notification::error($exception->getMessage());
179
}
180
});
181
$form->handleRequest($this->getServerRequest());
182
+ if ($form->hasBeenDeleted()) {
183
+ $this->redirectNow('imedge/snmp/devices#!__CLOSE__');
184
+ }
185
+
186
$this->content()->add($form);
187
return;
188
} else {
0 commit comments