This commit is contained in:
2026-02-13 21:33:21 +01:00
parent fd29e602e8
commit 4282b8d8cb
2 changed files with 10 additions and 5 deletions
+3 -5
View File
@@ -390,11 +390,9 @@ func (s *Server) serveAsset(w http.ResponseWriter, r *http.Request, filename str
func (s *Server) appDetailHandler(w http.ResponseWriter, r *http.Request, slug string) {
for _, stack := range s.stackMgr.GetStacks() {
if stack.Meta.Slug == slug {
if !stack.Deployed {
http.Redirect(w, r, "/stacks/"+stack.Name+"/deploy", http.StatusFound)
} else {
http.Redirect(w, r, "/stacks", http.StatusFound)
}
// Always redirect to deploy page — it has a read-only mode for
// deployed apps showing current settings, plus the external link
http.Redirect(w, r, "/stacks/"+stack.Name+"/deploy", http.StatusFound)
return
}
}