when outputting a link it helps if you run it through l() instead of just returning the output of url().