X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/a61c9c5e98b0a411b081543e3eaf1994d12919b3..refs/pull/4467/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 fa5ba0cc4..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') - -{!! setting('app-custom-head') !!} - +@inject('headContent', 'BookStack\Theming\CustomHtmlHeadContentProvider') + +@if(setting('app-custom-head') && !request()->routeIs('settings.category')) + +{!! $headContent->forWeb() !!} + @endif \ No newline at end of file