Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
Helpers
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Modulus
Helpers
Commits
17118e68
Commit
17118e68
authored
Nov 04, 2020
by
Sylvain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug current_parent_route_belongs()
parent
50464caa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/url.php
src/url.php
+1
-1
No files found.
src/url.php
View file @
17118e68
...
...
@@ -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
.
'*'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment