diff --git a/modules/problem.js b/modules/problem.js index 6cb0130..ddc4028 100644 --- a/modules/problem.js +++ b/modules/problem.js @@ -228,7 +228,7 @@ app.post('/problem/:id/submit', async (req, res) => { if (contest_id) { res.redirect(syzoj.utils.makeUrl(['contest', contest_id])); } else { - res.redirect(syzoj.utils.makeUrl(['submissions', judge_state.id])); + res.redirect(syzoj.utils.makeUrl(['submission', judge_state.id])); } } catch (e) { syzoj.log(e); diff --git a/views/problem.ejs b/views/problem.ejs index 069656a..b970480 100644 --- a/views/problem.ejs +++ b/views/problem.ejs @@ -106,7 +106,7 @@ if (contest) { <% let formUrl; if (contest) formUrl = syzoj.utils.makeUrl(['problem', problem.id, 'submit'], { contest_id: contest.id }); - else formUrl = syzoj.utils.makeUrl(['problem', problem.id, 'submit', problem.id]); + else formUrl = syzoj.utils.makeUrl(['problem', problem.id, 'submit']); %>