That's how query parameters work; what were you expecting?
May 24, 2022
5
Level 1
I can't remove the & from the url bar
I'm using ajax to pass the router,here is the code i use it : table.ajax.url('{{route("getVideoListAjax", ["is_guest" => 1, 'is_general_info' => 1])}}'); but when showing in the network section it is transmitting like this /getVideoListAjax?is_guest=1&is_general_info=0
Level 104
@DucTonyVN okay, I didn't see the & HTML entity in the OP.
Use this instead:
{!! route("getVideoListAjax", ["is_guest" => 1, 'is_general_info' => 1]) !!}
https://laravel.com/docs/9.x/blade#displaying-unescaped-data
2 likes
Please or to participate in this conversation.