X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/fd44e4ba74b7615e196dcafa4f1eddc634c0b44d..refs/pull/3433/head:/resources/views/common/custom-head.blade.php diff --git a/resources/views/common/custom-head.blade.php b/resources/views/common/custom-head.blade.php index 3199fc179..a13215cf8 100644 --- a/resources/views/common/custom-head.blade.php +++ b/resources/views/common/custom-head.blade.php @@ -1,5 +1,7 @@ -@if(setting('app-custom-head') && \Route::currentRouteName() !== 'settings') - -{!! \BookStack\Util\HtmlNonceApplicator::apply(setting('app-custom-head'), $cspNonce) !!} - +@inject('headContent', 'BookStack\Theming\CustomHtmlHeadContentProvider') + +@if(setting('app-custom-head') && !request()->routeIs('settings.category')) + +{!! $headContent->forWeb() !!} + @endif \ No newline at end of file