Sorry, forgot comment on this the previous time. 2 nested `if`s with no `else` or other conditions don't make sense.

Also, now that I think of it ... this feature is probably not necessary. `href=""` should link to the current page, which is better by trying to guess controller/method anyway.