Major bugfix in app.getPageUrl