Skip to content

Commit

Permalink
styling
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Dec 31, 2018
1 parent 524eb54 commit ca3aa19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Controllers/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ public function back($locale, Request $request)

if (config('language.url')) {
$previous_url = substr(str_replace(env('APP_URL'), '', $session->previousUrl()), 7);
if (strlen($previous_url) == 3){

if (strlen($previous_url) == 3) {
$previous_url = substr($previous_url, 3);
} else {
$previous_url = substr($previous_url, strrpos($previous_url, '/') + 1);
Expand Down

0 comments on commit ca3aa19

Please sign in to comment.