From 4d8b2455a8b72fdacc930c0c8c98a29e8983c3f1 Mon Sep 17 00:00:00 2001 From: daniel-hbn Date: Sat, 21 Jun 2025 15:57:48 +0200 Subject: [PATCH] AddServer Redirect fixed --- .gitignore | 3 +++ Watcher/Controllers/ServerController.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 26adfcc..1b4b41e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,9 @@ /logs *.env +/persistence/*.db-shm +/persistence/*.db-wal + # Build-Ordner bin/ obj/ diff --git a/Watcher/Controllers/ServerController.cs b/Watcher/Controllers/ServerController.cs index c6f4859..b75678e 100644 --- a/Watcher/Controllers/ServerController.cs +++ b/Watcher/Controllers/ServerController.cs @@ -49,7 +49,7 @@ public class ServerController : Controller _context.Servers.Add(server); await _context.SaveChangesAsync(); - return Redirect("Server/Overview"); + return RedirectToAction(nameof(Overview)); } [HttpPost]