Laravel's URL generator have separate algorithm for handling URL fragments (anchors?):
\Illuminate\Routing\RouteUrlGenerator::addQueryString.
Fragments are always appended to the end of query string and have no '=' after them.
Ziggy lacks that handy feature. That's the difference between Laravel and Ziggy generated URLs for the same route:
Ziggy version
v1.4.6
Laravel version
v9.8.1
Description
Laravel's URL generator have separate algorithm for handling URL fragments (anchors?):
\Illuminate\Routing\RouteUrlGenerator::addQueryString
. Fragments are always appended to the end of query string and have no '=' after them.Ziggy lacks that handy feature. That's the difference between Laravel and Ziggy generated URLs for the same route:
Laravel/Blade:
=>
https://domain.com/orders/123?param=test&#details
Ziggy:
=>
https://domain.com/orders/123?#details=¶m=test
Ziggy call and context
Ziggy configuration
Route definition