Issue #2361819 by eshta: Utilize basepath when comparing urls.