1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-11-24 03:42:32 +01:00

Cleaned setting section redirect path

This commit is contained in:
Dan Brown 2020-02-02 17:57:21 +00:00
parent b4f2b73590
commit 9d77cca734
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -71,7 +71,8 @@ class SettingController extends Controller
}
$this->showSuccessNotification(trans('settings.settings_save_success'));
return redirect('/settings#' . $request->get('section', ''));
$redirectLocation = '/settings#' . $request->get('section', '');
return redirect(rtrim($redirectLocation, '#'));
}
/**