Title: Sidebar login-redirect
Last modified: August 21, 2016

---

# Sidebar login-redirect

 *  [wp](https://wordpress.org/support/users/ashraf-jibrael/)
 * (@ashraf-jibrael)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/sidebar-login-redirect/)
 * Hi,
 * Anyone know of a sidebar login widget that will redirect to the correct private
   share page based on the username/password combo?
 * is it possoble after login to redirect to the persons personal page (referred
   to with his username,
 * How can i do that please ?
 * Iam tried with :[http://domainname/%username%](http://domainname/%username%) ?
 * Best wishes
 * [http://wordpress.org/extend/plugins/sidebar-login/](http://wordpress.org/extend/plugins/sidebar-login/)

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

 *  [Maxou51](https://wordpress.org/support/users/maxou51/)
 * (@maxou51)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/sidebar-login-redirect/#post-3858809)
 * Hi I’m interested about your question as well
 * So after 2 months, is it possible?
 * Thanks, Max
 *  [JP](https://wordpress.org/support/users/policieuxjp/)
 * (@policieuxjp)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/sidebar-login-redirect/#post-3858831)
 * Hi,
    I had a similar issue as I wanted to be able to set the login redirect url
   using %admin_url%. I managed to fix my problem by modifying just one line : in
   class-sidebar-login-widget.php line 285 :
 * Original:
    `$redirect = empty( $instance['login_redirect_url'] ) ? $this->current_url('
   nologout' ) : $instance['login_redirect_url'];`
 * Modified:
    `$redirect = empty( $instance['login_redirect_url'] ) ? $this->current_url('
   nologout' ) : $this->replace_tags($instance['login_redirect_url']);`
 * In the original version, the parameter %XXX% were not replaced.
 * Should probably solve your problem with %username% now.

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

 The topic ‘Sidebar login-redirect’ is closed to new replies.

 * ![](https://ps.w.org/sidebar-login/assets/icon.svg?rev=2396264)
 * [Sidebar Login](https://wordpress.org/plugins/sidebar-login/)
 * [Support Threads](https://wordpress.org/support/plugin/sidebar-login/)
 * [Active Topics](https://wordpress.org/support/plugin/sidebar-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sidebar-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sidebar-login/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [JP](https://wordpress.org/support/users/policieuxjp/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/sidebar-login-redirect/#post-3858831)
 * Status: not resolved