| @@ -16,9 +16,9 @@ | ||
| 16 | 16 | // Security: Check if user is already logged in and redirect securely |
| 17 | 17 | $current_user = wp_get_current_user(); |
| 18 | 18 | if ($current_user->ID > 0) { |
| 19 | 19 | // Use safe redirect with nonce verification |
| 20 | - $redirect_url = apply_filters('yatra_login_redirect_url', home_url('/my-account'), $current_user); | |
| 20 | + $redirect_url = apply_filters('yatra_login_redirect_url', home_url('/' . \Yatra\Services\SettingsService::getAccountBase()), $current_user); | |
| 21 | 21 | wp_safe_redirect($redirect_url); |
| 22 | 22 | exit; |
| 23 | 23 | } |
| 24 | 24 | |