Remove page parameter from block url generate script