Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
Add name parameter to edit url
givanz2df9e73740b9
diff --git a/admin/admin-bar.php b/admin/admin-bar.phpindex 27bf215..6119ea9 100755--- a/admin/admin-bar.php+++ b/admin/admin-bar.php@@ -32,9 +32,15 @@ list($menu) = Vvveb\System\Event::trigger('admin-bar', 'menu', $menu);list($top) = Vvveb\System\Event::trigger('admin-bar', 'top', []);$template = Vvveb\getCurrentTemplate();-$url = Vvveb\getCurrentUrl();-$admin_path = Vvveb\adminPath() . 'index.php';-$design_url = $admin_path . Vvveb\url(['module' => 'editor/editor', 'template' => $template, 'url' => $url], false, false);+$url = Vvveb\getCurrentUrl();+$admin_path = Vvveb\adminPath() . 'index.php';+$params = ['module' => 'editor/editor', 'template' => $template, 'url' => $url];+$name = $_GET['name'] ?? $_GET['slug'] ?? '';++if ($name) {+ $params['name'] = urlencode($name);+}+$design_url = $admin_path . Vvveb\url($params, false, false);$urlData = Vvveb\System\Routes::getUrlData($url);$edit_url = isset($urlData['edit']) ? $admin_path . $urlData['edit'] : '';$admin = \Vvveb\System\User\Admin :: current();