Skip to content

Commit a1376db

Browse files
committed
Redirect user to node allocation view after creation, closes pterodactyl#535
1 parent 99eead0 commit a1376db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Controllers/Admin/NodesController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ public function store(Request $request)
9494
'daemonBase', 'daemonSFTP', 'daemonListen',
9595
])
9696
));
97-
Alert::success('Successfully created new node that can be configured automatically on your remote machine by visiting the configuration tab. <strong>Before you can add any servers you need to first assign some IP addresses and ports.</strong>')->flash();
97+
Alert::success('Successfully created new node that can be configured automatically on your remote machine by visiting the configuration tab. <strong>Before you can add any servers you need to first assign some IP addresses and ports by adding an allocation.</strong>')->flash();
9898

99-
return redirect()->route('admin.nodes.view', $node->id);
99+
return redirect()->route('admin.nodes.view.allocation', $node->id);
100100
} catch (DisplayValidationException $e) {
101101
return redirect()->route('admin.nodes.new')->withErrors(json_decode($e->getMessage()))->withInput();
102102
} catch (DisplayException $e) {

0 commit comments

Comments
 (0)