Title: Correction
Last modified: August 22, 2016

---

# Correction

 *  [JibsouX](https://wordpress.org/support/users/jibsoux/)
 * (@jibsoux)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/correction-3/)
 * The way wordpress use to detect what page is on is $pagenow
 *     ```
       // If in admin
       if (is_admin()) {
       			// Get the current page
       			global $pagenow;
       			// If current page is profile.php
       			if ($pagenow == 'profile.php') {
       				// Get current user
       				global $current_user;
       				// Define url of the website
       				$blogurl = get_bloginfo('url');
       				// Prépare the redirect
       				$redirect = 'location: ' . $blogurl . '/members/' . $current_user->user_login . '/profile/';
       				// Redirect to profile in the front
       				header($redirect);
       			}
       		}
       ```
   
 * [https://wordpress.org/plugins/erocks-dashboard-lockdown/](https://wordpress.org/plugins/erocks-dashboard-lockdown/)

The topic ‘Correction’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/erocks-dashboard-lockdown.svg)
 * [Erocks Dashboard Lockdown](https://wordpress.org/plugins/erocks-dashboard-lockdown/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/erocks-dashboard-lockdown/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/erocks-dashboard-lockdown/)
 * [Active Topics](https://wordpress.org/support/plugin/erocks-dashboard-lockdown/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/erocks-dashboard-lockdown/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/erocks-dashboard-lockdown/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [JibsouX](https://wordpress.org/support/users/jibsoux/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/correction-3/)
 * Status: not resolved