a direct link from my shop site to the logged in users admin panel

<?php global $user_login;
echo"<a href=\"$BASE_URL$user_login/wp-admin/\">dashboard</a>";

Hi there
I am using the above code to make a link to the dashboard form the current logged in users page. It kind of works, but only when I click on it from the main page.
If I click on it from another page it adds the echoed url onto the end of the current page url in the browser rather than clearing the urll from the browser and then echoing the url I need.

I hope that makes sense to someone.

I am not a php expert and it took me a couple of hours to get this far :slight_smile: