fix for creating pages when using baseUrl