diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 8fa326f..a80bf00 100755 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -5,7 +5,7 @@ "type": 2, "subtype": 1, "name": "Profiles", - "uri": "{/prefix}profile/list", + "uri": "{/lang}/{/app}/profile/list", "target": "self", "icon": null, "order": 10, @@ -19,7 +19,7 @@ "type": 3, "subtype": 1, "name": "List", - "uri": "{/prefix}profile/list", + "uri": "{/lang}/{/app}/profile/list", "target": "self", "icon": null, "order": 1, @@ -34,7 +34,7 @@ "type": 5, "subtype": 1, "name": "Profile", - "uri": "{/prefix}profile/single/front?{?}", + "uri": "{/lang}/{/app}/profile/single/front?{?}", "target": "self", "icon": null, "order": 3, @@ -49,7 +49,7 @@ "type": 5, "subtype": 1, "name": "Settings", - "uri": "{/prefix}profile/single/settings?{?}", + "uri": "{/lang}/{/app}/profile/single/settings?{?}", "target": "self", "icon": null, "order": 999, @@ -66,7 +66,7 @@ "type": 3, "subtype": 1, "name": "Overview", - "uri": "{/prefix}admin/module/settings?{?}", + "uri": "{/lang}/{/app}/admin/module/settings?{?}", "target": "self", "icon": null, "order": 1, @@ -81,7 +81,7 @@ "type": 3, "subtype": 1, "name": "Settings", - "uri": "{/prefix}admin/module/settings/profile/settings?{?}", + "uri": "{/lang}/{/app}/admin/module/settings/profile/settings?{?}", "target": "self", "icon": null, "order": 1, @@ -96,7 +96,7 @@ "type": 3, "subtype": 1, "name": "Create", - "uri": "{/prefix}admin/module/settings/profile/create?{?}", + "uri": "{/lang}/{/app}/admin/module/settings/profile/create?{?}", "target": "self", "icon": null, "order": 2, diff --git a/Theme/Backend/Components/AccountGroupSelector/base.tpl.php b/Theme/Backend/Components/AccountGroupSelector/base.tpl.php index 819e55b..773776d 100755 --- a/Theme/Backend/Components/AccountGroupSelector/base.tpl.php +++ b/Theme/Backend/Components/AccountGroupSelector/base.tpl.php @@ -6,9 +6,9 @@ { "key": 1, "listener": "click", "action": [ {"key": 1, "type": "dom.popup", "selector": "#acc-grp-tpl", "aniIn": "fadeIn", "id": "= $this->getId(); ?>"}, - {"key": 2, "type": "message.request", "uri": "= \phpOMS\Uri\UriFactory::build('admin/account?filter=some&limit=10'); ?>", "method": "GET", "request_type": "json"}, + {"key": 2, "type": "message.request", "uri": "= \phpOMS\Uri\UriFactory::build('{/lang}/{/app}/admin/account?filter=some&limit=10'); ?>", "method": "GET", "request_type": "json"}, {"key": 3, "type": "dom.table.append", "id": "acc-table", "aniIn": "fadeIn", "data": [], "bindings": {"id": "id", "name": "name/0"}, "position": -1}, - {"key": 4, "type": "message.request", "uri": "= \phpOMS\Uri\UriFactory::build('admin/account?filter=some&limit=10'); ?>", "method": "GET", "request_type": "json"}, + {"key": 4, "type": "message.request", "uri": "= \phpOMS\Uri\UriFactory::build('{/lang}/{/app}/admin/account?filter=some&limit=10'); ?>", "method": "GET", "request_type": "json"}, {"key": 5, "type": "dom.table.append", "id": "grp-table", "aniIn": "fadeIn", "data": [], "bindings": {"id": "id", "name": "name/0"}, "position": -1} ] } diff --git a/Theme/Backend/profile-list.tpl.php b/Theme/Backend/profile-list.tpl.php index 9c650c4..947d0b5 100755 --- a/Theme/Backend/profile-list.tpl.php +++ b/Theme/Backend/profile-list.tpl.php @@ -21,8 +21,8 @@ use phpOMS\Uri\UriFactory; */ $accounts = $this->getData('accounts') ?? []; -$previous = empty($accounts) ? 'profile/list' : 'profile/list?{?}&id=' . \reset($accounts)->getId() . '&ptype=p'; -$next = empty($accounts) ? 'profile/list' : 'profile/list?{?}&id=' . \end($accounts)->getId() . '&ptype=n'; +$previous = empty($accounts) ? '{/lang}/{/app}profile/list' : '{/lang}/{/app}/profile/list?{?}&id=' . \reset($accounts)->getId() . '&ptype=p'; +$next = empty($accounts) ? '{/lang}/{/app}profile/list' : '{/lang}/{/app}/profile/list?{?}&id=' . \end($accounts)->getId() . '&ptype=n'; ?>