Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

DucTonyVN's avatar

I can't remove the &amp 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

0 likes
5 replies
tykus's avatar

That's how query parameters work; what were you expecting?

DucTonyVN's avatar

@tykus i'm expecting my url to be like this : /getVideoListAjax?is_guest=1&is_general_info=0 now it is transmitting more &amp getVideoListAjax?is_guest=1(&amp);is_general_info=0

DucTonyVN's avatar

@tykus It seems that I have deleted the &amp when I posted it, so I added this sign () to keep it from being deleted.

Please or to participate in this conversation.