From db2a84e98af8ca567e3e862e1bef6fd701a4f402 Mon Sep 17 00:00:00 2001
From: Jasper Mayone
Date: Sun, 8 Nov 2026 20:42:04 -0500
Subject: [PATCH] fix(sessions): submit the weave sign-in without turbo so the
redirect works
---
app/views/sessions/new.html.erb | 3 ++-
test/controllers/sessions_controller_test.rb | 8 ++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb
index bb16e3c..9ad1b37 100644
--- a/app/views/sessions/new.html.erb
+++ b/app/views/sessions/new.html.erb
@@ -11,7 +11,8 @@
<% if Weave::Config.configured? %>
- <%= button_to "Sign in with Weave", auth_weave_path, class: "mt-6 w-full rounded bg-amber-600 px-4 py-2 font-medium text-white hover:bg-amber-700" %>
+ <%# Turbo off: Turbo submits with fetch, and fetch cannot follow the redirect to Weave's origin. %>
+ <%= button_to "Sign in with Weave", auth_weave_path, form: { data: { turbo: false } }, class: "mt-6 w-full rounded bg-amber-600 px-4 py-2 font-medium text-white hover:bg-amber-700" %>
<% else %>