Use mw.util.getUrl for generating Link URLs

Bug: 31244
Change-Id: Ie06081aa147f2a122d498dcccafee9407ac59494