]> BookStack Code Mirror - bookstack/commitdiff
Cleaned setting section redirect path 1866/head
authorDan Brown <redacted>
Sun, 2 Feb 2020 17:57:21 +0000 (17:57 +0000)
committerDan Brown <redacted>
Sun, 2 Feb 2020 17:57:21 +0000 (17:57 +0000)
app/Http/Controllers/SettingController.php

index 7f7724468214101cbc443cdee63800d8cbc886e7..892b2d9cf0e0b5c7f9dd174e552a640790d191e7 100644 (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, '#'));
     }
 
     /**