fixed
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user