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, '#'));
}
/**