chnaged url in admin panel provider
This commit is contained in:
@@ -126,7 +126,7 @@ class AdminPanelProvider extends PanelProvider
|
|||||||
{
|
{
|
||||||
FilamentView::registerRenderHook('panels::head.end', function () {
|
FilamentView::registerRenderHook('panels::head.end', function () {
|
||||||
// Only inject on the "home" page (or specific route)
|
// Only inject on the "home" page (or specific route)
|
||||||
if (url()->current() == config('app.url') . '/') {
|
if (url()->current() == config('app.url') . '/admin') {
|
||||||
return '
|
return '
|
||||||
<link rel="manifest" href="' . asset('manifest.json') . '">
|
<link rel="manifest" href="' . asset('manifest.json') . '">
|
||||||
<meta name="theme-color" content="#007bff">
|
<meta name="theme-color" content="#007bff">
|
||||||
@@ -145,7 +145,7 @@ class AdminPanelProvider extends PanelProvider
|
|||||||
|
|
||||||
// Only include PWA install script if on home page
|
// Only include PWA install script if on home page
|
||||||
FilamentView::registerRenderHook('panels::body.end', function () {
|
FilamentView::registerRenderHook('panels::body.end', function () {
|
||||||
if (url()->current() == config('app.url') . '/') {
|
if (url()->current() == config('app.url') . '/admin') {
|
||||||
return '<script src="' . asset('js/pwa-install.js') . '"></script>';
|
return '<script src="' . asset('js/pwa-install.js') . '"></script>';
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
|
|||||||
Reference in New Issue
Block a user