fix absolute/relative pages