Fixes problem with relative permalinks