diff --git a/packages/hydrooj/package.json b/packages/hydrooj/package.json index 7ed5ca7e2..394ab5043 100644 --- a/packages/hydrooj/package.json +++ b/packages/hydrooj/package.json @@ -1,6 +1,6 @@ { "name": "hydrooj", - "version": "2.15.10", + "version": "2.15.11", "bin": "bin/hydrooj.js", "main": "dist/loader.js", "typings": "dist/loader.d.ts", diff --git a/packages/hydrooj/src/handler/problem.ts b/packages/hydrooj/src/handler/problem.ts index e7be5069a..4e2849bd3 100644 --- a/packages/hydrooj/src/handler/problem.ts +++ b/packages/hydrooj/src/handler/problem.ts @@ -327,7 +327,7 @@ export class ProblemStatisticsHandler extends ProblemDetailHandler { const udoc = await user.getById(domainId, this.pdoc.owner); const path = [ ['problem_main', 'problem_main'], - [this.pdoc.title, 'problem_detail', { pid: this.pdoc.pid }, true], + [this.pdoc.title, 'problem_detail', { pid: this.pdoc.pid || this.pdoc.docId }, true], ['problem_statistics', null], ]; this.response.template = 'problem_statistics.html'; @@ -530,7 +530,7 @@ export class ProblemSolutionHandler extends ProblemDetailHandler { const pssdict = solution.getListStatus(domainId, docids, this.user._id); const path = [ ['problem_main', 'problem_main'], - [this.pdoc.title, 'problem_detail', { pid: this.pdoc.pid }, true], + [this.pdoc.title, 'problem_detail', { pid: this.pdoc.pid || this.pdoc.docId }, true], ['problem_solution', null], ]; this.response.body = {