diff --git a/packages/Webkul/Customer/src/Http/Controllers/SessionController.php b/packages/Webkul/Customer/src/Http/Controllers/SessionController.php index 5cb9adcf7..b98f01490 100755 --- a/packages/Webkul/Customer/src/Http/Controllers/SessionController.php +++ b/packages/Webkul/Customer/src/Http/Controllers/SessionController.php @@ -38,7 +38,7 @@ class SessionController extends Controller public function show() { if (auth()->guard('customer')->check()) { - return redirect()->route('customer.account.index'); + return redirect()->route('customer.profile.index'); } else { return view($this->_config['view']); } diff --git a/packages/Webkul/Customer/src/Http/Middleware/RedirectIfNotCustomer.php b/packages/Webkul/Customer/src/Http/Middleware/RedirectIfNotCustomer.php index 065b5bd90..78f5c1436 100755 --- a/packages/Webkul/Customer/src/Http/Middleware/RedirectIfNotCustomer.php +++ b/packages/Webkul/Customer/src/Http/Middleware/RedirectIfNotCustomer.php @@ -18,7 +18,7 @@ class RedirectIfNotCustomer public function handle($request, Closure $next, $guard = 'customer') { if (! Auth::guard($guard)->check()) { - return redirect()->route('customer.account.index'); + return redirect()->route('customer.profile.index'); } else { if (Auth::guard($guard)->user()->status == 0) { Auth::guard($guard)->logout();