Strange URL behavior with modals, the URL changes when interact with modal

Hi guys, i'm facing a strange behavior with modals, everytime my application shows or close a modal it changes the url with some functions leading to some router erros when refreshing page or copy link. I already tried rollback my git to days ago and still with this problem. I suspect it start happening after a composer update.
https://consultor.777fy.test/propostas?tableAction%5Bunique%5D=function()%7Bfor(var+o%3Dthis.concat(),t%3D0%3Bt%3Co.length%3B%2B%2Bt)for(var+e%3Dt%2B1%3Be%3Co.length%3B%2B%2Be)o%5Bt%5D%3D%3D%3Do%5Be%5D%26%26o.splice(e--,1)%3Breturn+o%7D&tableActionArguments%5Bunique%5D=function()%7Bfor(var+o%3Dthis.concat(),t%3D0%3Bt%3Co.length%3B%2B%2Bt)for(var+e%3Dt%2B1%3Be%3Co.length%3B%2B%2Be)o%5Bt%5D%3D%3D%3Do%5Be%5D%26%26o.splice(e--,1)%3Breturn+o%7D&tableActionRecord%5Bunique%5D=function()%7Bfor(var+o%3Dthis.concat(),t%3D0%3Bt%3Co.length%3B%2B%2Bt)for(var+e%3Dt%2B1%3Be%3Co.length%3B%2B%2Be)o%5Bt%5D%3D%3D%3Do%5Be%5D%26%26o.splice(e--,1)%3Breturn+o%7D
https://consultor.777fy.test/propostas?tableAction%5Bunique%5D=function()%7Bfor(var+o%3Dthis.concat(),t%3D0%3Bt%3Co.length%3B%2B%2Bt)for(var+e%3Dt%2B1%3Be%3Co.length%3B%2B%2Be)o%5Bt%5D%3D%3D%3Do%5Be%5D%26%26o.splice(e--,1)%3Breturn+o%7D&tableActionArguments%5Bunique%5D=function()%7Bfor(var+o%3Dthis.concat(),t%3D0%3Bt%3Co.length%3B%2B%2Bt)for(var+e%3Dt%2B1%3Be%3Co.length%3B%2B%2Be)o%5Bt%5D%3D%3D%3Do%5Be%5D%26%26o.splice(e--,1)%3Breturn+o%7D&tableActionRecord%5Bunique%5D=function()%7Bfor(var+o%3Dthis.concat(),t%3D0%3Bt%3Co.length%3B%2B%2Bt)for(var+e%3Dt%2B1%3Be%3Co.length%3B%2B%2Be)o%5Bt%5D%3D%3D%3Do%5Be%5D%26%26o.splice(e--,1)%3Breturn+o%7D
this is what happen with the url. Asked to gpt to decode this and this is the result:
tableAction[unique]=function() {
for (var o = this.concat(), t = 0; t < o.length; ++t) {
for (var e = t + 1; e < o.length; ++e) {
if (o[t] === o[e]) {
o.splice(e--, 1);
}
}
}
return o;
}

tableActionArguments[unique]=function() {
for (var o = this.concat(), t = 0; t < o.length; ++t) {
for (var e = t + 1; e < o.length; ++e) {
if (o[t] === o[e]) {
o.splice(e--, 1);
}
}
}
return o;
}

tableActionRecord[unique]=function() {
for (var o = this.concat(), t = 0; t < o.length; ++t) {
for (var e = t + 1; e < o.length; ++e) {
if (o[t] === o[e]) {
o.splice(e--, 1);
}
}
}
return o;
}
tableAction[unique]=function() {
for (var o = this.concat(), t = 0; t < o.length; ++t) {
for (var e = t + 1; e < o.length; ++e) {
if (o[t] === o[e]) {
o.splice(e--, 1);
}
}
}
return o;
}

tableActionArguments[unique]=function() {
for (var o = this.concat(), t = 0; t < o.length; ++t) {
for (var e = t + 1; e < o.length; ++e) {
if (o[t] === o[e]) {
o.splice(e--, 1);
}
}
}
return o;
}

tableActionRecord[unique]=function() {
for (var o = this.concat(), t = 0; t < o.length; ++t) {
for (var e = t + 1; e < o.length; ++e) {
if (o[t] === o[e]) {
o.splice(e--, 1);
}
}
}
return o;
}
10 Replies
wagnerfnds
wagnerfndsOP10mo ago
This is what shows when refresh the page with this strange URL
No description
azog
azog10mo ago
I've encountered a similar behavior; any hints on how it can be solved? Should we be concerned security wise? (javascript injection...)
No description
awcodes
awcodes10mo ago
Something is broken in your apps. Try upgrading to latest Filament. Make sure you are running ‘artisan filament:upgrade’ too. And if you have published any views, delete them.
wagnerfnds
wagnerfndsOP10mo ago
I find it is only happening in newer versions of livewire with a specific plugin installed, but it is already fixed. Try downgrade your livewire version, it is not a filament bug
John Wink
John Wink10mo ago
@wagnerfnds are u using filament kanban? 😄
wagnerfnds
wagnerfndsOP10mo ago
Yes, i am. But it is already fixed. It was something with some versions of livewire, but the newers one its okay
azog
azog10mo ago
Thx, would you please share a specific version of Livewire that would work? (Currently using v3.4.4)
wagnerfnds
wagnerfndsOP10mo ago
You can try 3.3.5, was the one working for me, on 3.4.* i was facing the bug, but now im on latest version and it is working fine
fagner
fagner10mo ago
Hello everyone, I'm having the same problem, has anyone seen a solution for this?
wagnerfnds
wagnerfndsOP10mo ago
Yes. as i said, downgrade your livewire to 3.3.5
Want results from more Discord servers?
Add your server