Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
PavlosIsaris committed Dec 13, 2024
1 parent e851069 commit 73d4cac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@ private function getRedirectBackUrl(): string {
if (!Str::contains($referrer, '?open')) {
$goBackUrl .= '?open=1';
} //so user can go back and open the questionnaire
} else {
$goBackUrl = $referrer;
}
}
} else {
$goBackUrl = route('home');
}

return $goBackUrl;
Expand Down
2 changes: 1 addition & 1 deletion resources/views/code-of-conduct/en.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
@if ($goBackUrl)
<div class=" mt-5 col-md-4 col-sm-12 mx-auto">
<a href="{{$goBackUrl}}" class="btn call-to-action go-back"><i
class="fas fa-long-arrow-alt-left"></i> Back to the questionnaire</a>
class="fas fa-long-arrow-alt-left"></i> Go Back</a>
</div>
@endif
</div>
Expand Down

0 comments on commit 73d4cac

Please sign in to comment.