Add log error and fix redirect link
Fix the build error when database update failed