Update Dispatch.php

Fixing URL check