laravel-adminer icon indicating copy to clipboard operation
laravel-adminer copied to clipboard

Changing route_prefix to a path makes plugins and themes stop working

Open fronbow opened this issue 11 months ago • 3 comments

Hi

So, I changed the config file 'route_prefix' => env('ADMINER_ROUTE_PREFIX', 'admin/adminer'), as I like to have admin tools in the admin route and now the adminer.css file fails to load. If I change the route back to adminer then it works as intended.

Cheers

fronbow avatar Mar 07 '24 10:03 fronbow

@fronbow You may create admin folder under public folder, and move adminer.css file into admin folder It will auto load the style from path /admin/adminer.css

onecentlin avatar Mar 09 '24 17:03 onecentlin

I updated nginx conf to fix:

# adminer
location ~ adminer.css$ {
  access_log off;
  log_not_found off;
  try_files $uri /adminer.css;
}

acid23m avatar Mar 10 '24 19:03 acid23m

@fronbow You may create admin folder under public folder, and move adminer.css file into admin folder It will auto load the style from path /admin/adminer.css

Cheers, that sorted it :-)

fronbow avatar Mar 11 '24 10:03 fronbow