From a1376db4fdb893edac323fd7bfc9624f655831f7 Mon Sep 17 00:00:00 2001 From: Joost Kwakkel Date: Sat, 8 Jul 2017 18:14:54 +0200 Subject: [PATCH] Redirect user to node allocation view after creation, closes #535 --- app/Http/Controllers/Admin/NodesController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Admin/NodesController.php b/app/Http/Controllers/Admin/NodesController.php index ca4836ea4..ce02febac 100644 --- a/app/Http/Controllers/Admin/NodesController.php +++ b/app/Http/Controllers/Admin/NodesController.php @@ -94,9 +94,9 @@ class NodesController extends Controller 'daemonBase', 'daemonSFTP', 'daemonListen', ]) )); - Alert::success('Successfully created new node that can be configured automatically on your remote machine by visiting the configuration tab. Before you can add any servers you need to first assign some IP addresses and ports.')->flash(); + Alert::success('Successfully created new node that can be configured automatically on your remote machine by visiting the configuration tab. Before you can add any servers you need to first assign some IP addresses and ports by adding an allocation.')->flash(); - return redirect()->route('admin.nodes.view', $node->id); + return redirect()->route('admin.nodes.view.allocation', $node->id); } catch (DisplayValidationException $e) { return redirect()->route('admin.nodes.new')->withErrors(json_decode($e->getMessage()))->withInput(); } catch (DisplayException $e) {