How to 'click' a link via code

I wanted to add a direct link to the solution, as the above does not work