Title: Redirection Issue
Last modified: August 22, 2016

---

# Redirection Issue

 *  [Chris Perryman](https://wordpress.org/support/users/revconcept/)
 * (@revconcept)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/redirection-issue-6/)
 * I need the redirection to go back to the home page. I have all of your template
   files in my theme and have made customizations, on the user-login.php file I 
   tried changing this:
 *     ```
       if ( is_user_logged_in() ) {
       	wp_safe_redirect( home_url( '/user-profile/' ) );
       	exit;
       ```
   
 * But it’s still sending me to the profile page every time I log in. How can I 
   fix this??
 * [https://wordpress.org/plugins/user-frontend/](https://wordpress.org/plugins/user-frontend/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [Chris Perryman](https://wordpress.org/support/users/revconcept/)
 * (@revconcept)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/redirection-issue-6/#post-5310092)
 * Bump?
 *  [Scott McCulloch](https://wordpress.org/support/users/sinemac/)
 * (@sinemac)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/redirection-issue-6/#post-5310125)
 * Did you ever find a fix for this? I’m having the same issue… I thought changing
   the wp_safe_redirect would do the trick, but it doesn’t seem to be the case.
 *  Thread Starter [Chris Perryman](https://wordpress.org/support/users/revconcept/)
 * (@revconcept)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/redirection-issue-6/#post-5310144)
 * No, I was not able to get this working – I don’t want to edit the core plugin,
   but that’s my next move unfortunately unless they fix this….
 *  Plugin Author [wpcodingde](https://wordpress.org/support/users/wpcodingde/)
 * (@wpcodingde)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/redirection-issue-6/#post-5310151)
 * Hello there,
 * sorry for the huge and unforgivable delay and lack of support. I’ll do my best
   to change this in 2015.
 * If you look deeper into the [code of the plugin](https://github.com/wpcodingde/User-Frontend/blob/master/inc/action-login.php#L45),
   you’ll notice that the user will be redirected to a custom page if the $_POST-
   Variable ‘redirect_to’ is setted.
 * `wp_redirect( $_POST[ 'redirect_to' ] );`
 * But I’ll provide a filter as written in [my issue tracker](https://github.com/wpcodingde/User-Frontend/issues/13).
 * Best regards,
    Thomas
 *  Thread Starter [Chris Perryman](https://wordpress.org/support/users/revconcept/)
 * (@revconcept)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/redirection-issue-6/#post-5310152)
 * Where am I supposed to set this??
 *  Thread Starter [Chris Perryman](https://wordpress.org/support/users/revconcept/)
 * (@revconcept)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/redirection-issue-6/#post-5310153)
 * I currently have this in my user-login.php file (which isn’t working since I 
   updated the plugin it’s not calling my custom files):
 * <?php echo isset( $_GET[ ‘redirect_to’ ] ) ? ‘<input type=”hidden” name=”redirect_to”
   value=”‘ . esc_url( $_GET[ ‘redirect_to’ ] ) . ‘”>’ : ”; ?>
 * What do I need to do to get the redirect to work?
 *  Plugin Author [wpcodingde](https://wordpress.org/support/users/wpcodingde/)
 * (@wpcodingde)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/redirection-issue-6/#post-5310154)
 * Hey RevConcept,
 * The redirection should work if the URL to the login page is something like [http://yourdomain.tld/user-login/?redirect_to=](http://yourdomain.tld/user-login/?redirect_to=){
   escaped_url}.
 * I’ll test this issue within the upcoming week. Maybe I should provide a function
   uf_get_login_url() with the redirection parameter.
 * I’ll overthink this and will post in this thread.
 * Best regards,
    Thomas

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Redirection Issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/user-frontend_3f4344.svg)
 * [User Frontend](https://wordpress.org/plugins/user-frontend/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-frontend/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-frontend/)
 * [Active Topics](https://wordpress.org/support/plugin/user-frontend/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-frontend/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-frontend/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [wpcodingde](https://wordpress.org/support/users/wpcodingde/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/redirection-issue-6/#post-5310154)
 * Status: not resolved