You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Hello. I have a screen with pagination enabled, so pages comes with URLs like /images/all?page=1
I place a button in a modal window on the screen. Like that:
Layout::modal (async)
.. Layout::table
.... TD::make
...... ->render
........ Button::make('text')->method('setImage', [
........ 'preview' => $preview->id,
........ 'image' => $this->image->id,
........ ]),
Buttons are created with:
formaction="http://.../images/all?page=1/setImage?preview=629&image=75"
That's because
Button.php:81
$action = rtrim("{$url}/{$this->get('method')}?{$query}", '/?');
and $url = http://.../images/all?page=1
So then I click on the button it throws an exception: method all() not found
If I open URL without ?page=1 everything works as expected.
How can it be fixed? Thanks!
The text was updated successfully, but these errors were encountered:
Describe the bug
Hello. I have a screen with pagination enabled, so pages comes with URLs like /images/all?page=1
I place a button in a modal window on the screen. Like that:
Layout::modal (async)
.. Layout::table
.... TD::make
...... ->render
........ Button::make('text')->method('setImage', [
........ 'preview' => $preview->id,
........ 'image' => $this->image->id,
........ ]),
Buttons are created with:
formaction="http://.../images/all?page=1/setImage?preview=629&image=75"
That's because
Button.php:81
$action = rtrim("{$url}/{$this->get('method')}?{$query}", '/?');
and $url = http://.../images/all?page=1
So then I click on the button it throws an exception: method all() not found
If I open URL without ?page=1 everything works as expected.
How can it be fixed? Thanks!
The text was updated successfully, but these errors were encountered: