Skip to content

Commit 039a3d1

Browse files
bpamiriclaude
andcommitted
fix: Add missing redirect in editBlog catch block
The catch block logged the error but never redirected, causing Wheels to render editBlog.cfm without any variables set. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a224262 commit 039a3d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/controllers/admin/AdminController.cfc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ component extends="app.Controllers.Controller" {
7373
);
7474

7575
// Redirect with error message
76+
flashInsert(error = "Unable to load blog post for editing.");
77+
redirectTo(route = "dashboard");
7678
}
7779
}
7880

0 commit comments

Comments
 (0)