Title: Username variable / constant?
Last modified: September 1, 2016

---

# Username variable / constant?

 *  [CraftyMc](https://wordpress.org/support/users/craftymc/)
 * (@craftymc)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/username-variable-constant/)
 * Hey is there a way of adding the currently logged in username to the redirected
   url?
 * For example I’m using buddypress and i want to redirect a link to the users profile
   however the url would look like members/USERNAME/profile
 * How can I add a username variable if any so it detects the currently logged in
   user and redirect to that url?
 * Thanks
 * [https://wordpress.org/plugins/redirection/](https://wordpress.org/plugins/redirection/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [CraftyMc](https://wordpress.org/support/users/craftymc/)
 * (@craftymc)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/username-variable-constant/#post-7603503)
 * Is there any help on this?
 * Need a solution urgently.

Viewing 1 replies (of 1 total)

The topic ‘Username variable / constant?’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

## Tags

 * [redirect user](https://wordpress.org/support/topic-tag/redirect-user/)
 * [usernames](https://wordpress.org/support/topic-tag/usernames/)

 * 1 reply
 * 1 participant
 * Last reply from: [CraftyMc](https://wordpress.org/support/users/craftymc/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/username-variable-constant/#post-7603503)
 * Status: not resolved