Gives option for fixing if badly formatted HTML is inserted.
Closes #310
@include('partials/custom-styles')
- <!-- Custom user content -->
- @if(setting('app-custom-head'))
+ @if(setting('app-custom-head') && \Route::currentRouteName() !== 'settings')
+ <!-- Custom user content -->
{!! setting('app-custom-head') !!}
+ <!-- End custom user content -->
@endif
</head>
<body class="@yield('body-class')" ng-app="bookStack">
// Settings
Route::group(['prefix' => 'settings'], function() {
- Route::get('/', 'SettingController@index');
+ Route::get('/', 'SettingController@index')->name('settings');
Route::post('/', 'SettingController@update');
// Users