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:
Ludy87
2026-08-24 14:12:48 +02:00
parent 54e7a98ab7
commit b2a54423ef
@@ -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);
}