Odd Redirect Issue

My profile pages can be accessed via domain.com/u/username

When I am on them and I click a link that goes to /account-setting I get redirected to /u/account-settings which is not the correct path.

I don’t think this is a rewrite issue. Rewrite rule: RewriteRule ^u/(.*)$ /profile.php?u=$1 [QSA,L]

On my profile page I have:

if (isset($_GET["u"]))
{
    $username = mres($_GET["u"]);
}
else if (isset($user_info["username"]))
{
    $username = mres($user_info["username"]);
}

The really odd thing is that when I hover over the link. Firefox even displays domain.com/account-settings in the explore at the bottom of the page. Any idea why this is getting rewritten?