Attempt to fix permalinks generated by injected console.