AddServer Redirect fixed

This commit is contained in:
2025-06-21 15:57:48 +02:00
parent d8fda8bde8
commit 4d8b2455a8
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@@ -3,6 +3,9 @@
/logs /logs
*.env *.env
/persistence/*.db-shm
/persistence/*.db-wal
# Build-Ordner # Build-Ordner
bin/ bin/
obj/ obj/

View File

@@ -49,7 +49,7 @@ public class ServerController : Controller
_context.Servers.Add(server); _context.Servers.Add(server);
await _context.SaveChangesAsync(); await _context.SaveChangesAsync();
return Redirect("Server/Overview"); return RedirectToAction(nameof(Overview));
} }
[HttpPost] [HttpPost]