WIKI-341: Fix bug that lack domain name in permalink