Merge pull request #745 from CREDO23/sur-106-feat-public-chats

[Feature] Public Chat Sharing and Cloning
This commit is contained in:
Rohan Verma 2026-01-27 16:01:08 -08:00 committed by GitHub
commit 752a51d3fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 2253 additions and 474 deletions

View file

@ -27,6 +27,13 @@ function LoginContent() {
const error = searchParams.get("error");
const message = searchParams.get("message");
const logout = searchParams.get("logout");
const returnUrl = searchParams.get("returnUrl");
// Save returnUrl to localStorage so it persists through OAuth flows (e.g., Google)
// This is read by TokenHandler after successful authentication
if (returnUrl) {
localStorage.setItem("surfsense_redirect_path", decodeURIComponent(returnUrl));
}
// Show registration success message
if (registered === "true") {