From f097ee97d71fb46ba10094fa7052e6916e93eae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarda=20Kot=C4=9B=C5=A1ovec?= Date: Wed, 8 Jan 2025 14:47:59 +0100 Subject: [PATCH] pkp/pkp-lib#10670 Update to new urls for dashboard and workflow page --- plugins/reports/articles/ArticleReportPlugin.php | 2 +- templates/frontend/objects/article_details.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/reports/articles/ArticleReportPlugin.php b/plugins/reports/articles/ArticleReportPlugin.php index 1a22f5f4f7c..35d681ba2bf 100644 --- a/plugins/reports/articles/ArticleReportPlugin.php +++ b/plugins/reports/articles/ArticleReportPlugin.php @@ -203,7 +203,7 @@ public function display($args, $request) 'keywords' => join(', ', $keywords[Locale::getLocale()] ?? $keywords[$submission->getData('locale')] ?? []), 'agencies' => join(', ', $agencies[Locale::getLocale()] ?? $agencies[$submission->getData('locale')] ?? []), 'status' => $submission->getData('status') == PKPSubmission::STATUS_QUEUED ? $this->getStageLabel($submission->getData('stageId')) : __($statusMap[$submission->getData('status')]), - 'url' => $request->url(null, 'workflow', 'access', $submission->getId()), + 'url' => $request->url(null, 'dashboard', 'editorial', null, ['workflowSubmissionId' => $submission->getId()]), 'doi' => $publication->getDoi(), 'dateSubmitted' => $submission->getData('dateSubmitted'), 'lastModified' => $submission->getData('lastModified'), diff --git a/templates/frontend/objects/article_details.tpl b/templates/frontend/objects/article_details.tpl index b55dd8aadb4..bbc856a9815 100755 --- a/templates/frontend/objects/article_details.tpl +++ b/templates/frontend/objects/article_details.tpl @@ -77,7 +77,7 @@ {* Indicate if this is only a preview *} {if $publication->getData('status') !== PKP\submission\PKPSubmission::STATUS_PUBLISHED}
- {capture assign="submissionUrl"}{url page="workflow" op="access" path=$article->getId()}{/capture} + {capture assign="submissionUrl"}{url page="dashboard" op="editorial" workflowSubmissionId=$article->getId()}{/capture} {translate key="submission.viewingPreview" url=$submissionUrl}
{* Notification that this is an old version *}