A free open source IT asset/license management system
Fixes #3753 - use route direction instead of URL
snipe7510f9f128e3
diff --git a/app/Http/Controllers/AssetsController.php b/app/Http/Controllers/AssetsController.phpindex 53fc4eca9b..1a85aa4e75 100755--- a/app/Http/Controllers/AssetsController.php+++ b/app/Http/Controllers/AssetsController.php@@ -485,7 +485,7 @@ class AssetsController extends Controller}if ($asset->checkOut($target, $admin, $checkout_at, $expected_checkin, e(Input::get('note')), Input::get('name'))) {// Redirect to the new asset page- return redirect()->to("hardware.index")->with('success', trans('admin/hardware/message.checkout.success'));+ return redirect()->route("hardware.index")->with('success', trans('admin/hardware/message.checkout.success'));}// Redirect to the asset management page with error@@ -577,11 +577,11 @@ class AssetsController extends Controllerif ($backto=='user') {return redirect()->to("admin/users/".$return_to.'/view')->with('success', trans('admin/hardware/message.checkin.success'));}- return redirect()->to("hardware.index")->with('success', trans('admin/hardware/message.checkin.success'));+ return redirect()->route("hardware.index")->with('success', trans('admin/hardware/message.checkin.success'));}// Redirect to the asset management page with error- return redirect()->to("hardware.index")->with('error', trans('admin/hardware/message.checkin.error'));+ return redirect()->route("hardware.index")->with('error', trans('admin/hardware/message.checkin.error'));}