diff --git a/src/Config/language.php b/src/Config/language.php index 5ebd9fc..92e5098 100644 --- a/src/Config/language.php +++ b/src/Config/language.php @@ -42,7 +42,7 @@ | It can be 'session' (default) or 'referer' | */ - 'strategy' => 'session', + 'back' => 'session', /* |-------------------------------------------------------------------------- diff --git a/src/Controllers/Language.php b/src/Controllers/Language.php index b8a96d5..e5591fd 100644 --- a/src/Controllers/Language.php +++ b/src/Controllers/Language.php @@ -57,7 +57,7 @@ public function back($locale, Request $request) { $this->setLocale($locale, $request); - $url = config('language.strategy') === 'referer' + $url = config('language.back', 'session') === 'referer' ? $this->getUrlFromReferer($request) : $this->getUrlFromSession($request);