Only continue with the route if the fragment still matches