Closed alexmanase closed 1 year ago
When someone uses the name function for defining the name of a Folio route, Folio does not look for the $baseUri.
name
$baseUri
For example:
There is this Blade file with this name:
<?php // resources/views/team/nuno-maduro.blade.php \Laravel\Folio\name('nuno'); ?>
and has this defined Folio route:
Folio::route( path: resource_path('/views/team'), uri: '/team-members' );
route('nuno') => '/nuno-maduro' ❌ This is the path returned. route('nuno') => '/team-members/nuno-maduro' ✅ This is the path that should be returned.
This PR fixes this bug.
I will fix this here https://github.com/laravel/folio/pull/88. Thank you!
When someone uses the
name
function for defining the name of a Folio route, Folio does not look for the$baseUri
.For example:
There is this Blade file with this name:
and has this defined Folio route:
This PR fixes this bug.