Fixes uses with URL building when pretty permalinks are active