jeroennoten / Laravel-AdminLTE

Easy AdminLTE integration with Laravel
MIT License
3.8k stars 1.08k forks source link

[BUG] Iframe mode : menu link not working #1065

Open invaders-xx opened 2 years ago

invaders-xx commented 2 years ago

Describe the bug

a menu entry in config/adminlte.php with route like:

'route' => ['users.index', ['filters' => ['type' => 1]]],

is not working with iframe mode is enabled.

Environment

Complete the next environment information.

Item Version
Laravel 8
Project latest
OS debian
dfsmania commented 2 years ago

Hi @invaders-xx What is the href attribute generated on that link? Does this only happens for the IFrame mode?

invaders-xx commented 2 years ago

Hi @Shidersz,

The href looks like : href="https://laravel.test/backend/users?filters%5Btype%5D=1"

It only happens for the iFrame mode.

Many thanks for your feedback.

dfsmania commented 2 years ago

@invaders-xx When you say "is not working" what you mean?

May you try using the browser's inspector tool an change the href value to https://laravel.test/backend/users?filters[type]=1

invaders-xx commented 2 years ago

console error :

Syntax error, unrecognized expression: #tab-https-laravel7-test-backend-users-filters%5Btype%5D-1

dfsmania commented 2 years ago

Thanks @invaders-xx , this may be a bug on the underlying AdminLTE package when assigning the ID to the iFrame tab, or something like that.

@REJack can you check this one?

invaders-xx commented 2 years ago

Any news ?

dfsmania commented 2 years ago

@invaders-xx I suggest you to open an issue on https://github.com/ColorlibHQ/AdminLTE , and point the issue here for more details.