fixes flatpage url