fix pages url generation