mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Fix starts_with to work with https
This commit is contained in:
parent
2954c3e760
commit
f7ce5bcdcb
1 changed files with 2 additions and 2 deletions
|
|
@ -41,9 +41,9 @@ return [
|
|||
}
|
||||
},
|
||||
'url' => function ($page, $path) {
|
||||
return starts_with($path, 'http://') ? $path : '/'.trimPath($path);
|
||||
return (starts_with($path, 'http://') || starts_with($path, 'https://')) ? $path : '/'.trimPath($path);
|
||||
},
|
||||
'isUrl' => function ($page, $path) {
|
||||
return starts_with($path, 'http://');
|
||||
return starts_with($path, 'http://') || starts_with($path, 'https://');
|
||||
},
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue