Skip to content

Commit

Permalink
fix: quick exit destination (resolves #2074) (#2081)
Browse files Browse the repository at this point in the history
  • Loading branch information
jobara committed Dec 14, 2023
1 parent 3b143d8 commit f7aa400
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/ExitController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ public function exit(Request $request): RedirectResponse

$request->session()->regenerateToken();

return redirect('https://weather.com');
return redirect('https://www.google.ca/');
}
}
2 changes: 1 addition & 1 deletion resources/views/partials/help-bar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class="font-semibold">{{ safe_inlineMarkdown('Call or :!vrs', [
</button>
</form>
@else
<a class="cta" href="https://weather.com" rel="nofollow noopener noreferrer">
<a class="cta" href="https://www.google.ca/" rel="nofollow noopener noreferrer">
{{ __('Quick exit') }}
</a>
@endauth
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/AuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

test('users can quickly exit', function () {
actingAs($this->user)->post(localized_route('exit'))
->assertRedirect('https://weather.com');
->assertRedirect('https://www.google.ca/');

assertGuest();
});
Expand Down

0 comments on commit f7aa400

Please sign in to comment.