mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2026-09-03 05:10:16 +03:00
Change Gmail OAuth redirect to /mail
Update GmailOAuthController to redirect to /mail?gmail=connected instead of /editor/mail?gmail=connected. When a frontendUrl is configured the controller now appends "/mail?gmail=connected" (after trimming any trailing slash). This aligns the backend OAuth callback with the frontend route change.
This commit is contained in:
+2
-2
@@ -129,8 +129,8 @@ public class GmailOAuthController {
|
||||
String frontendUrl = applicationProperties.getSystem().getFrontendUrl();
|
||||
String target =
|
||||
frontendUrl == null || frontendUrl.isBlank()
|
||||
? "/editor/mail?gmail=connected"
|
||||
: frontendUrl.trim().replaceAll("/$", "") + "/editor/mail?gmail=connected";
|
||||
? "/mail?gmail=connected"
|
||||
: frontendUrl.trim().replaceAll("/$", "") + "/mail?gmail=connected";
|
||||
response.sendRedirect(target);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user