Set min/max when setting p/q from URL