Title: Redirect to source
Last modified: April 24, 2023

---

# Redirect to source

 *  [dvamvourellis](https://wordpress.org/support/users/19db/)
 * (@19db)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/redirect-to-source/)
 * ive seen the shortcode addition
 * **1.1**
    - Feature: Add shortcode `[google_login]` with optional attributes: `[google_login
      button_text="Login with Google" force_display="no" redirect_to="https://example.
      url/page"]`
 * but i was wondering, what link should we use (if possible, otherwise a php function)
   to redirect the user in the source page. For example, if he tries to login/signup
   while in checkout, redirect him to checkout after signup/login.
 * Thank you in advance

The topic ‘Redirect to source’ is closed to new replies.

 * ![](https://ps.w.org/login-with-google/assets/icon-256x256.png?rev=3250317)
 * [Log in with Google](https://wordpress.org/plugins/login-with-google/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/login-with-google/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/login-with-google/)
 * [Active Topics](https://wordpress.org/support/plugin/login-with-google/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/login-with-google/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/login-with-google/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [dvamvourellis](https://wordpress.org/support/users/19db/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/redirect-to-source/)
 * Status: not resolved