If you want to create a link with the user nickname as a part of it I would do something like this
<?php
// check if user is logged in
if (is_user_logged_in()) {
// get current user object
$current_user = wp_get_current_user();
// get user nickname
$user_nickname = $current_user->data->user_nicename;
// set the link href
$link_href = 'www.domain.com/profile/' . $user_nickname;
// output the link html
echo '<a href="' . $link_href . '" title="title text here">Link text here</a>';
}
?>
Now, because I don't know where or how you want to add the link I made some generic code that will output the link with the current users nickname only if user is logged in
EDIT
In order to output the link in a when using a wordpress text editor (wysiwyg) you will need a shortcode.
Same code as above but now in a shortcode
Add the following code inside your functions.php
add_shortcode('bt_redirect_user_link', 'bt_redirect_user_link');
function bt_redirect_user_link ($atts) {
// check if user is logged in
if (is_user_logged_in()) {
// get current user object
$current_user = wp_get_current_user();
// get user nickname
$user_nickname = $current_user->data->user_nicename;
// set the link href
$link_href = 'www.domain.com/profile/' . $user_nickname;
// output the link html
return '<a href="' . $link_href . '" title="title text here">Link text here</a>';
}
}
To use the shortcode inside a text editor simply add [bt_redirect_user_link]