Translations:Manual:Coding conventions/121/en

You can use the appropriate $Linker or $Title method in PHP, the $fullurl magic word in wikitext, the mw.util.getURL method in JavaScript, and similar methods in other languages. You'll avoid issues with unexpected short URL configuration and more.