Change uri based comparison

I want to use MinkRedirectContext.
But, I must include partial base uri to path.
TODO section will be able to change to URI comparison converting with locatePath().