Article/Category link helper uses assigned project ids instead of global one

Article IDs are unique thats why macros may take just only the article id. 

But when the macros is called from within the "wrong" context (main page of redmine, other project) the link generation may fail due missing @project variable or pointing to a wrong project.

So using the assigned project id of article / category is better I think.