Commit 17118e68 authored by Sylvain's avatar Sylvain

Bug current_parent_route_belongs()

parent 50464caa
......@@ -53,7 +53,7 @@ if (! function_exists('current_parent_route_belongs')) {
function current_parent_route_belongs($route_name) : string
{
$route = route($route_name, [], false);
preg_replace('/\/([^\/]*\/?)$/', '', $route);
$route = preg_replace('/\/([^\/]*\/?)$/', '', $route);
$uri = trim($route, '/');
return Request::is($uri . '*');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment