Fixed find by url method to work correctly with optimezed pages