static page and custom urls fixes