From 3c4be35f26c0289aa8269fde7a469037b760b0ba Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 10 Dec 2022 22:17:54 +0100 Subject: [PATCH] fix urls --- Admin/Install/Navigation.install.json | 8 ++++---- Theme/Backend/workflow-dashboard.tpl.php | 2 +- Theme/Backend/workflow-template-list.tpl.php | 20 ++++++++++---------- info.json | 2 +- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index bb8287a..2002d7a 100755 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -5,7 +5,7 @@ "type": 2, "subtype": 1, "name": "Workflows", - "uri": "{/prefix}workflow/instance/list?{?}", + "uri": "{/lang}/{/app}/workflow/instance/list?{?}", "target": "self", "icon": null, "order": 40, @@ -19,7 +19,7 @@ "type": 3, "subtype": 1, "name": "Dashboard", - "uri": "{/prefix}workflow/instance/list?{?}", + "uri": "{/lang}/{/app}/workflow/instance/list?{?}", "target": "self", "icon": null, "order": 1, @@ -34,7 +34,7 @@ "type": 3, "subtype": 1, "name": "Templates", - "uri": "{/prefix}workflow/template/list", + "uri": "{/lang}/{/app}/workflow/template/list", "target": "self", "icon": null, "order": 5, @@ -49,7 +49,7 @@ "type": 3, "subtype": 1, "name": "Create", - "uri": "{/prefix}workflow/template/create?{?}", + "uri": "{/lang}/{/app}/workflow/template/create?{?}", "target": "self", "icon": null, "order": 10, diff --git a/Theme/Backend/workflow-dashboard.tpl.php b/Theme/Backend/workflow-dashboard.tpl.php index 597986a..61d1d31 100755 --- a/Theme/Backend/workflow-dashboard.tpl.php +++ b/Theme/Backend/workflow-dashboard.tpl.php @@ -31,7 +31,7 @@ echo $this->getData('nav')->render(); ?> $instance) : ++$c; - $url = \phpOMS\Uri\UriFactory::build('admin/instance/single?{?}&id=' . $instance->getId()); + $url = \phpOMS\Uri\UriFactory::build('{/lang}/{/app}/admin/instance/single?{?}&id=' . $instance->getId()); ?> printHtml((string) $instance->getStatus()); ?> diff --git a/Theme/Backend/workflow-template-list.tpl.php b/Theme/Backend/workflow-template-list.tpl.php index ae5205c..2874624 100755 --- a/Theme/Backend/workflow-template-list.tpl.php +++ b/Theme/Backend/workflow-template-list.tpl.php @@ -29,16 +29,16 @@ $accountDir = $account->getId() . ' ' . $account->login; $collections = $this->getData('collections'); $mediaPath = \urldecode($this->getData('path') ?? '/'); -$previous = empty($templates) ? 'workflow/template/list' : 'workflow/template/list?{?}&id=' . \reset($templates)->getId() . '&ptype=p'; -$next = empty($templates) ? 'workflow/template/list' : 'workflow/template/list?{?}&id=' . \end($templates)->getId() . '&ptype=n'; +$previous = empty($templates) ? 'workflow/template/list' : '{/lang}/{/app}/workflow/template/list?{?}&id=' . \reset($templates)->getId() . '&ptype=p'; +$next = empty($templates) ? 'workflow/template/list' : '{/lang}/{/app}/workflow/template/list?{?}&id=' . \end($templates)->getId() . '&ptype=n'; echo $this->getData('nav')->render(); ?>