So I have slightly modified the customer.xml file to add classes to the top links, so I could add font awesome icons to them. The issue I am having is for some reason the login class disappears if I click on the login link, then without actually logging in, click back to the home page, the class on the login link get removed!
<reference name="top.links">
<action method="addLink" translate="label title" module="customer">
<label>Login</label>
<url helper="customer/getLoginUrl"/>
<title>Login</title>
<prepare/>
<urlParams/>
<position>12</position>
<liParams>
<class>toplinks-login</class>
</liParams>
<aParams>
<class>toplinks-login-a</class>
</aParams>
<beforeText/>
<afterText/>
</action>
</reference>
This is the code I have for the login. So when the problem happens the "toplinks-login-a" class disappears and no class is shown at all.
I have searched for hours and can't find out why this could happen. Does anyone know another alternate way to add a class, perhaps hardcoding it?
EDIT: This is what the HTML looks like when the page loads correctly
<a href="http://website.com/customer/account/login/referer/aHR0cDovL2Rldi5uYXVnaHR5Y292ZS5jb20vbWFzdHVyYmF0b3JzLmh0bWw,/" title="Login" class="toplinks-login-a">Login</a>
And when it doesn't work randomly
<a href="http://website.com/customer/account/login/referer/aHR0cDovL2Rldi5uYXVnaHR5Y292ZS5jb20v/" title="http://website.com/customer/account/login/referer/aHR0cDovL2Rldi5uYXVnaHR5Y292ZS5jb20v/">Log In</a>